1
0
mirror of synced 2025-02-01 04:15:50 +01:00

- Fix a crash with KOFMIRA

- Fix a crash with KOFMIRA
This commit is contained in:
Nezarn 2020-07-21 16:57:46 +02:00
parent 76bdc01c32
commit 80b827cf18

View File

@ -244,7 +244,7 @@ static HANDLE __stdcall FindFirstFileAWrap(LPCSTR lpFileName, LPWIN32_FIND_DATAA
//std::wstring wfn(fn.begin(), fn.end());
std::string wfnA(fn.begin(), fn.end());
if (GameDetect::currentGame == GameID::KOF98UM)
if (GameDetect::currentGame == GameID::KOF98UM || GameDetect::currentGame == GameID::KOFMIRA)
{
return FindFirstFileA((pathRoot + "\\OpenParrot\\"s + wfnA.substr(0)).c_str(), lpFindFileData);
}
@ -279,7 +279,7 @@ static HANDLE __stdcall FindFirstFileExWWrap(LPCWSTR lpFileName, FINDEX_INFO_LEV
std::wstring fn = lpFileName;
std::wstring wfn(fn.begin(), fn.end());
if (GameDetect::currentGame == GameID::KOF98UM)
if (GameDetect::currentGame == GameID::KOF98UM || GameDetect::currentGame == GameID::KOFMIRA)
{
return FindFirstFileExW((pathRoot + L"\\OpenParrot\\"s + wfn.substr(0)).c_str(), fInfoLevelId, lpFindFileData, fSearchOp, lpSearchFilter, dwAdditionalFlags);
}