fixed copypaste bug in cdlogger introduced in #310 merge

(cdl auto load were broken, an error occures while attempting to save changes to cdl window settings)
This commit is contained in:
g0me3 2021-02-10 20:09:27 +03:00
parent 97c8c591bd
commit 56adae5e6c
1 changed files with 3 additions and 3 deletions

View File

@ -288,8 +288,8 @@ void SaveCDLogFile()
if (loadedcdfile[0] == 0)
{
char nameo[2048];
strcpy(nameo, GetRomName().c_str());
strcat(nameo, mass_replace(GetRomPath(), "|", ".").c_str());
strcpy(nameo, GetRomPath().c_str());
strcat(nameo, mass_replace(GetRomName(), "|", ".").c_str());
strcat(nameo, ".cdl");
RenameCDLog(nameo);
}
@ -499,7 +499,7 @@ void CDLoggerROMChanged()
// try to load respective CDL file
char nameo[2048];
strcpy(nameo, GetRomName().c_str());
strcpy(nameo, GetRomPath().c_str());
strcat(nameo, mass_replace(GetRomName(), "|", ".").c_str());
strcat(nameo, ".cdl");