fixed Use Remote ZIP Resource

fixed typo
This commit is contained in:
chinosk
2025-03-20 01:20:24 +00:00
parent 4a77a4fc06
commit b38fabd65b
5 changed files with 214 additions and 7 deletions
+26
View File
@@ -1240,6 +1240,27 @@ 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;
@@ -1634,6 +1655,11 @@ 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);