Skip to content

Commit 43fee73

Browse files
authored
Add files via upload
1 parent e57b7ad commit 43fee73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TimerResolutionModifier.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DWORD WINAPI MonitorThread(LPVOID lpParam)
4141
if (NT_SUCCESS(g_pfnSetTimerResolution(g_targetResolution, FALSE, &currentResolution))) { g_isTimerHigh = false; }
4242
}
4343
}
44-
Sleep(250);
44+
Sleep(10000);
4545
}
4646
if (g_isTimerHigh && g_pfnSetTimerResolution) {
4747
g_pfnSetTimerResolution(g_targetResolution, FALSE, &currentResolution);
@@ -69,11 +69,11 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
6969
wchar_t* lastSlash = wcsrchr(dllPath, L'\\');
7070
if (lastSlash) { *(lastSlash + 1) = L'\0'; }
7171
std::wstring iniPath = dllPath;
72-
iniPath += L"blacklist.ini";
72+
iniPath += L"Config.ini";
7373

7474
// 2. 黑名单检查
7575
wchar_t checkBuffer[2];
76-
GetPrivateProfileStringW(L"Blacklist", processName, L"0", checkBuffer, sizeof(checkBuffer), iniPath.c_str());
76+
GetPrivateProfileStringW(L"BlackList", processName, L"0", checkBuffer, sizeof(checkBuffer), iniPath.c_str());
7777
if (wcscmp(checkBuffer, L"0") != 0) { return TRUE; }
7878

7979
// 3. 读取INI配置

0 commit comments

Comments
 (0)