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

Function CDLoggerROMChanged

src/drivers/Qt/CodeDataLogger.cpp:940–971  ·  view source on GitHub ↗

----------------------------------------------------

Source from the content-addressed store, hash-verified

938}
939//----------------------------------------------------
940void CDLoggerROMChanged(void)
941{
942 FreeCDLog();
943 InitCDLog();
944 ResetCDLog();
945 RenameCDLog("");
946
947 g_config->getOption("SDL.AutoResumeCDL", &autoResumeCDL);
948
949 if (!autoResumeCDL)
950 return;
951
952 // try to load respective CDL file
953 std::string nameo;
954 getDefaultCDLFile(nameo);
955
956 FILE *FP;
957 FP = fopen(nameo.c_str(), "rb");
958 if (FP != NULL)
959 {
960 // .cdl file with this ROM name exists
961 fclose(FP);
962 //if (!hCDLogger)
963 //{
964 // DoCDLogger();
965 //}
966 if (LoadCDLog(nameo.c_str()))
967 {
968 StartCDLogging();
969 }
970 }
971}
972//----------------------------------------------------
973void RenameCDLog(const char *newName)
974{

Callers 1

LoadGameFunction · 0.70

Calls 8

getDefaultCDLFileFunction · 0.85
getOptionMethod · 0.80
FreeCDLogFunction · 0.70
InitCDLogFunction · 0.70
ResetCDLogFunction · 0.70
RenameCDLogFunction · 0.70
LoadCDLogFunction · 0.70
StartCDLoggingFunction · 0.70

Tested by

no test coverage detected