This commit is contained in:
chinosk 2025-03-20 01:27:20 +00:00
parent b38fabd65b
commit 6950616cb1
Signed by: chinosk
GPG Key ID: 00610B08C1BF7BE9
1 changed files with 0 additions and 26 deletions

View File

@ -1240,27 +1240,6 @@ namespace GakumasLocal::HookMain {
return ret;
}
DEFINE_HOOK(void*, WindowHandle_SetWindowLong, (int32_t nIndex, intptr_t dwNewLong, void* mtd)) {
if (nIndex == GWL_STYLE) {
// printf("GWL_STYLE\n");
HWND hwnd = FindWindowW(L"UnityWndClass", L"gakumas");
LONG_PTR style = GetWindowLongPtr(hwnd, GWL_STYLE);
style |= WS_OVERLAPPEDWINDOW;
SetWindowLongPtr(hwnd, GWL_STYLE, style);
dwNewLong = style;
}
return WindowHandle_SetWindowLong_Orig(nIndex, dwNewLong, mtd);
}
DEFINE_HOOK(void*, AspectRatioHandler_WindowProc, (intptr_t hWnd,
uint32_t msg,
intptr_t wParam,
intptr_t lParam, void* mtd)) {
return AspectRatioHandler_WindowProc_Orig(hWnd, msg, wParam, lParam, mtd);
}
void UpdateSwingBreastBonesData(void* initializeData) {
if (!Config::enableBreastParam) return;
@ -1655,11 +1634,6 @@ namespace GakumasLocal::HookMain {
"RenderPipeline", "EndCameraRendering"));
#ifdef GKMS_WINDOWS
ADD_HOOK(WindowHandle_SetWindowLong, Il2cppUtils::GetMethodPointer("Assembly-CSharp.dll", "Campus.Common.StandAloneWindow",
"WindowHandle", "SetWindowLong"));
ADD_HOOK(AspectRatioHandler_WindowProc, Il2cppUtils::GetMethodPointer("Assembly-CSharp.dll", "Campus.Common.StandAloneWindow",
"AspectRatioHandler", "WindowProc"));
g_extra_assetbundle_paths.push_back((gakumasLocalPath / "local-files/gakumasassets").string());
LoadExtraAssetBundle();
GkmsResourceUpdate::CheckUpdateFromAPI(false);