Backported the buffer overflow fix for debug log from 4.x

Simplified ASM code in Premade.cpp a bit.
This commit is contained in:
NovaRain
2023-06-17 22:01:36 +08:00
parent be6947e3d2
commit 2156f82184
12 changed files with 261 additions and 155 deletions
+7 -2
View File
@@ -895,8 +895,13 @@ Criticals=1
Fixes=1
;Duplicates logs to a dedicated console window alongside the game window
;Set to 1 to display debug output (requires DebugMode to be enabled), 2 to display sfall log, or 3 for both
ConsoleWindow=0
;This option uses bit flags to control the types of messages to be shown
;All types other than sfall log (bit 1) require DebugMode to be enabled
;1 (bit 0) - debug output from the engine
;2 (bit 1) - sfall log
;4 (bit 2) - messages from debug_msg script function
;8 (bit 3) - messages from display_msg script function
ConsoleWindow=0b0000
;Console window position and size data. Do not modify
ConsoleWindowData=