Apply FF13 fixes on CreateWindowExA too

This commit is contained in:
rebtd7 2019-12-29 15:28:26 -03:00 committed by GitHub
parent db45bff0ed
commit 4133d6b03a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,6 +298,11 @@ HWND WINAPI MainContext::HookCreateWindowExA(DWORD dwExStyle, LPCSTR lpClassName
return hWnd;
}
if (context.autofix == FINAL_FANTASY_XIII && !context.didOneTimeFixes) {
PrintLog("Starting FFXIII one time RAM patches. (HookCreateWindowExA)");
context.FFXIIIOneTimeFixes();
}
if (context.CheckWindow(hWnd))
{
context.ApplyWndProc(hWnd);
@ -317,7 +322,7 @@ HWND WINAPI MainContext::HookCreateWindowExW(DWORD dwExStyle, LPCWSTR lpClassNam
}
if (context.autofix == FINAL_FANTASY_XIII && !context.didOneTimeFixes) {
PrintLog("Starting FFXIII one time RAM patches.");
PrintLog("Starting FFXIII one time RAM patches. (HookCreateWindowExW)");
context.FFXIIIOneTimeFixes();
}