Log Optimization & add Banner

layeredfs add mod_dir option allow uses different folder
add simple input option to allow input direct apply to game
This commit is contained in:
ptmaster
2025-03-16 16:49:07 +08:00
parent ef4564a912
commit 466e6d2e59
19 changed files with 223 additions and 170 deletions
+3 -2
View File
@@ -31,9 +31,10 @@ namespace patches::Timer {
bool setHighResolutionTimer = currentResolution > maximumResolution;
if (setHighResolutionTimer) {
NTSTATUS status = NtSetTimerResolution(maximumResolution, TRUE, &currentResolution);
ULONG targetResolution = currentResolution;
NTSTATUS status = NtSetTimerResolution(maximumResolution, TRUE, &targetResolution);
if (status == 0) {
LogMessage (LogLevel::INFO, "Timer resolution: {}ms -> {}ms", currentResolution / 10000.0, maximumResolution / 10000.0);
LogMessage (LogLevel::INFO, "Using HiRes Timer: {}ms -> {}ms", currentResolution / 10000.0, targetResolution / 10000.0);
} else {
LogMessage (LogLevel::WARN, "Failed to change Timer resolution, status={}", status);
}