1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 03:33:29 +08:00

reformat code

This commit is contained in:
2024-11-12 15:02:22 +08:00
parent 5b725ff94f
commit bbab36bc35
2 changed files with 16 additions and 15 deletions

View File

@@ -113,6 +113,7 @@ public static class WindowFunctions
{
WinApi.SetWindowLongPtr(_gameWindowHandle, WinApi.GWLP_WNDPROC, _oldWndProc);
}
break;
case WinApi.WM_SYSCOMMAND:
switch ((long)wParam & 0xFFF0L)
@@ -121,6 +122,7 @@ public static class WindowFunctions
if (GamePatch.LoadLastWindowRectEnabled.Value && !_gameLoaded) return (IntPtr)1L;
break;
}
break;
case WinApi.WM_MOVING:
if (!GamePatch.LoadLastWindowRectEnabled.Value || _gameLoaded) break;
@@ -149,6 +151,7 @@ public static class WindowFunctions
Marshal.StructureToPtr(rect2, lParam, false);
break;
}
return WinApi.CallWindowProc(_oldWndProc, hWnd, uMsg, wParam, lParam);
}
@@ -253,7 +256,8 @@ public static class WindowFunctions
if (pid == currentProcessId)
break;
}
_gameWindowHandle = wnd;
return _gameWindowHandle;
}
}
}