| 294 | } |
| 295 | |
| 296 | void 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 |
| 327 | void IPreferences::Commit() |
nothing calls this directly
no test coverage detected