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

Function getDefaultCDLFile

src/drivers/Qt/CodeDataLogger.cpp:727–758  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

725}
726//----------------------------------------------------
727static int getDefaultCDLFile(std::string &filepath)
728{
729 const char *romFile;
730 std::string dir, baseFile;
731
732 filepath.clear();
733
734 romFile = getRomFile();
735
736 if (romFile == NULL)
737 {
738 return -1;
739 }
740
741 parseFilepath(romFile, &dir, &baseFile);
742
743 if (dir.size() == 0)
744 {
745 filepath.assign(baseFile);
746 filepath.append(".cdl");
747 }
748 else
749 {
750 filepath.assign(dir);
751 filepath.append(baseFile);
752 filepath.append(".cdl");
753 }
754
755 //printf("%s\n", filepath );
756
757 return 0;
758}
759//----------------------------------------------------
760void FreeCDLog(void)
761{

Callers 3

CDLoggerROMChangedFunction · 0.85
SaveCDLogFileFunction · 0.85

Calls 4

parseFilepathFunction · 0.85
getRomFileFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected