Added InjectAllGameHooks to [Debugging] section in ddraw.ini.

This commit is contained in:
NovaRain
2018-07-05 21:52:53 +08:00
parent 5d4b8fdd7b
commit 84c7ac0536
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -622,6 +622,9 @@ DontDeleteProtos=0
;Set to 1 to give scripts direct access to Fallout's address space, and to make arbitrary calls into Fallout's code
AllowUnsafeScripting=0
;Set to 1 to force sfall to inject all hooks code into the game, even if corresponding hook scripts don't exist
InjectAllGameHooks=0
;These options control what output is saved in the debug log (sfall-log.txt)
;Prints messages duing sfall initialization
+1 -1
View File
@@ -222,7 +222,7 @@ void HookScripts::init() {
OnMouseClick() += MouseClickHook;
LoadGameHook::OnGameModeChange() += GameModeChangeHook;
HookScripts::injectAllHooks = (isDebug && (GetConfigInt("Debugging", "InjectingAllGameHooks", 0) != 0));
HookScripts::injectAllHooks = (isDebug && (GetConfigInt("Debugging", "InjectAllGameHooks", 0) != 0));
}
}