- Fix KOF2002 test menu save\loading
- Fix KOF2002 test menu save\loading
This commit is contained in:
parent
0a87fd02dd
commit
4c46c2ae4a
@ -1019,7 +1019,7 @@ LPCSTR ParseFileNamesA(LPCSTR lpFileName)
|
||||
|
||||
if (GameDetect::currentGame == GameID::KOF2002)
|
||||
{
|
||||
if (!strncmp(lpFileName, "d:/Setting", 10) || !strncmp(lpFileName, "d:/CoinFile", 11))
|
||||
if (!strncmp(lpFileName, "d:/Setting", 10) || !strncmp(lpFileName, "d:/CoinFile", 11) || !strncmp(lpFileName, "d:/Ranking", 11))
|
||||
{
|
||||
memset(moveBuf, 0, 256);
|
||||
if (lpFileName[2] == '\\' || lpFileName[2] == '/')
|
||||
@ -1030,6 +1030,14 @@ LPCSTR ParseFileNamesA(LPCSTR lpFileName)
|
||||
return moveBuf;
|
||||
}
|
||||
|
||||
if (!strncmp(lpFileName, "Setting*.txt", 12) || !strncmp(lpFileName, "Ranking*.txt", 12) || !strncmp(lpFileName, "CoinFile*.txt", 13))
|
||||
{
|
||||
memset(moveBuf, 0, 256);
|
||||
sprintf(moveBuf, ".\\OpenParrot\\%s", lpFileName);
|
||||
|
||||
return moveBuf;
|
||||
}
|
||||
|
||||
return lpFileName;
|
||||
}
|
||||
|
||||
@ -1297,7 +1305,7 @@ LPCWSTR ParseFileNamesW(LPCWSTR lpFileName)
|
||||
|
||||
if (GameDetect::currentGame == GameID::KOF2002)
|
||||
{
|
||||
if (!wcsncmp(lpFileName, L"d:/Setting", 10) || !wcsncmp(lpFileName, L"d:/CoinFile", 11))
|
||||
if (!wcsncmp(lpFileName, L"d:/Setting", 10) || !wcsncmp(lpFileName, L"d:/CoinFile", 11) || !wcsncmp(lpFileName, L"d:/Ranking", 10))
|
||||
{
|
||||
memset(moveBufW, 0, 256);
|
||||
if (lpFileName[2] == '\\' || lpFileName[2] == '/')
|
||||
@ -1308,6 +1316,14 @@ LPCWSTR ParseFileNamesW(LPCWSTR lpFileName)
|
||||
return moveBufW;
|
||||
}
|
||||
|
||||
if (!wcsncmp(lpFileName, L"Setting*.txt", 12) || !wcsncmp(lpFileName, L"Ranking*.txt", 12) || !wcsncmp(lpFileName, L"CoinFile*.txt", 13))
|
||||
{
|
||||
memset(moveBufW, 0, 256);
|
||||
swprintf(moveBufW, L".\\OpenParrot\\%s", lpFileName);
|
||||
|
||||
return moveBufW;
|
||||
}
|
||||
|
||||
return lpFileName;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user