Merge branch 'ImproveGame' into ImproveGameUI

This commit is contained in:
爱编程的叶一笑 2024-07-02 20:03:04 +08:00 committed by GitHub
commit d0598ae772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- added a optional context menu option to make folder/file forced quickly.
- You can also use "Sandman.exe /add_force program_path" to do it.
### Changed
- Extend "Temp Template" to make it could delete local template section

View File

@ -215,6 +215,18 @@ _FX BOOLEAN Syscall_Init_List(void)
LIST disabled_hooks;
Syscall_LoadHookMap(L"DisableWinNtHook", &disabled_hooks);
if (Conf_Get_Boolean(NULL, L"Improve3DGameRate", 0, FALSE)) {
PATTERN* pat = Pattern_Create(Driver_Pool, L"WaitForSingleObject", FALSE, 0);
if (pat)
List_Insert_After(&disabled_hooks, NULL, pat);
pat = Pattern_Create(Driver_Pool, L"ReleaseSemaphore", FALSE, 0);
if (pat)
List_Insert_After(&disabled_hooks, NULL, pat);
pat = Pattern_Create(Driver_Pool, L"SetEvent", FALSE, 0);
if (pat)
List_Insert_After(&disabled_hooks, NULL, pat);
pat = Pattern_Create(Driver_Pool, L"ClearEvent", FALSE, 0);
}
LIST approved_syscalls;
Syscall_LoadHookMap(L"ApproveWinNtSysCall", &approved_syscalls);