MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / OutputSectionDetails

Method OutputSectionDetails

Source/Utility/Preferences.cpp:296–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void IPreferences::OutputSectionDetails( const RomID & id, const SRomPreferences & preferences, FILE * fh )
297{
298 // Generate the CRC-ID for this rom:
299 RomSettings settings;
300 CRomSettingsDB::Get()->GetSettings( id, &settings );
301
302 fprintf(fh, "{%08x%08x-%02x}\t// %s\n", id.CRC[0], id.CRC[1], id.CountryID, settings.GameName.c_str() );
303 fprintf(fh, "PatchesEnabled=%d\n", preferences.PatchesEnabled);
304 fprintf(fh, "SpeedSyncEnabled=%d\n", preferences.SpeedSyncEnabled);
305 fprintf(fh, "DynarecEnabled=%d\n", preferences.DynarecEnabled);
306 fprintf(fh, "DynarecLoopOptimisation=%d\n", preferences.DynarecLoopOptimisation);
307 fprintf(fh, "DynarecDoublesOptimisation=%d\n", preferences.DynarecDoublesOptimisation);
308 fprintf(fh, "DoubleDisplayEnabled=%d\n", preferences.DoubleDisplayEnabled);
309 fprintf(fh, "CleanSceneEnabled=%d\n", preferences.CleanSceneEnabled);
310 fprintf(fh, "ClearDepthFrameBuffer=%d\n", preferences.ClearDepthFrameBuffer);
311 fprintf(fh, "AudioRateMatch=%d\n", preferences.AudioRateMatch);
312 fprintf(fh, "VideoRateMatch=%d\n", preferences.VideoRateMatch);
313 fprintf(fh, "FogEnabled=%d\n", preferences.FogEnabled);
314 fprintf(fh, "CheckTextureHashFrequency=%d\n", GetTexureHashFrequencyAsFrames( preferences.CheckTextureHashFrequency ) );
315 fprintf(fh, "Frameskip=%d\n", GetFrameskipValueAsInt( preferences.Frameskip ) );
316 fprintf(fh, "AudioEnabled=%d\n", preferences.AudioEnabled);
317 fprintf(fh, "ZoomX=%f\n", preferences.ZoomX );
318 fprintf(fh, "MemoryAccessOptimisation=%d\n", preferences.MemoryAccessOptimisation);
319 fprintf(fh, "CheatsEnabled=%d\n", preferences.CheatsEnabled);
320#ifdef DAEDALUS_PSP
321 fprintf(fh, "Controller=%s\n", CInputManager::Get()->GetConfigurationName( preferences.ControllerIndex ));
322#endif
323 fprintf(fh, "\n"); // Spacer
324}
325
326// Write out the .ini file, keeping the original comments intact
327void IPreferences::Commit()

Callers

nothing calls this directly

Calls 5

GetFrameskipValueAsIntFunction · 0.85
GetSettingsMethod · 0.80
c_strMethod · 0.45
GetConfigurationNameMethod · 0.45

Tested by

no test coverage detected