MCPcopy Create free account
hub / github.com/TASEmulators/fceux / CDLoggerROMChanged

Function CDLoggerROMChanged

src/drivers/win/cdlogger.cpp:494–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void CDLoggerROMChanged()
495{
496 if (hCDLogger)
497 {
498 FreeCDLog();
499 InitCDLog();
500 ResetCDLog();
501 RenameCDLog("");
502 UpdateCDLogger();
503 }
504
505 if (!autoresumeCDLogging)
506 return;
507
508 // try to load respective CDL file
509 char nameo[2048];
510 strcpy(nameo, GetRomPath().c_str());
511 strcat(nameo, mass_replace(GetRomName(), "|", ".").c_str());
512 strcat(nameo, ".cdl");
513
514 FILE *FP;
515 FP = fopen(nameo, "rb");
516 if (FP != NULL)
517 {
518 // .cdl file with this ROM name exists
519 fclose(FP);
520 if (!hCDLogger)
521 DoCDLogger();
522 if (LoadCDLog(nameo))
523 StartCDLogging();
524 }
525}
526
527bool PauseCDLogging()
528{

Callers 1

FCEUI_LoadGameVirtualFunction · 0.50

Calls 11

UpdateCDLoggerFunction · 0.85
GetRomPathFunction · 0.85
mass_replaceFunction · 0.85
GetRomNameFunction · 0.85
DoCDLoggerFunction · 0.85
FreeCDLogFunction · 0.70
InitCDLogFunction · 0.70
ResetCDLogFunction · 0.70
RenameCDLogFunction · 0.70
LoadCDLogFunction · 0.70
StartCDLoggingFunction · 0.70

Tested by

no test coverage detected