[saco] Match SubclassGameWindow()

This commit is contained in:
RD42 2024-07-22 18:27:19 +08:00
parent 64ad774209
commit ed1646d102

View File

@ -26,22 +26,24 @@ BOOL SubclassGameWindow()
{ {
HWND hwndGameWnd = pGame->GetMainWindowHwnd(); HWND hwndGameWnd = pGame->GetMainWindowHwnd();
if(!hwndGameWnd) return FALSE; if(hwndGameWnd) {
DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE); DWORD dwStyle = GetClassLong(hwndGameWnd,GCL_STYLE);
SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS); SetClassLong(hwndGameWnd,GCL_STYLE,dwStyle|CS_DBLCLKS);
InstallNewWindowProcedure(); InstallNewWindowProcedure();
SetWindowText(hwndGameWnd,"GTA:SA:MP"); SetWindowText(hwndGameWnd,"GTA:SA:MP");
if(IsWindowUnicode(hwndGameWnd)) { if(IsWindowUnicode(hwndGameWnd)) {
OutputDebugString("GTA is unicode"); OutputDebugString("GTA is unicode");
} else { } else {
OutputDebugString("GTA is not unicode"); OutputDebugString("GTA is not unicode");
}
return TRUE;
} }
return FALSE;
return TRUE;
} }
//---------------------------------------------------- //----------------------------------------------------