Core/Various Worlds: Fix crash/freeze with unicode characters (#4671)

replace colorama.init with just_fix_windows_console
This commit is contained in:
Benny D
2025-03-14 01:24:37 -06:00
committed by GitHub
parent 1de411ec89
commit 9b3ee018e9
19 changed files with 19 additions and 19 deletions

View File

@@ -276,6 +276,6 @@ def launch(*launch_args: str) -> None:
Utils.init_logging("BizHawkClient", exception_logger="Client")
import colorama
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main())
colorama.deinit()

View File

@@ -261,6 +261,6 @@ def launch():
# options = Utils.get_options()
import colorama
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main())
colorama.deinit()

View File

@@ -530,7 +530,7 @@ server_args = ("--rcon-port", rcon_port, "--rcon-password", rcon_password)
def launch():
import colorama
global executable, server_settings, server_args
colorama.init()
colorama.just_fix_windows_console()
if server_settings:
server_settings = os.path.abspath(server_settings)

View File

@@ -295,6 +295,6 @@ def launch():
parser = get_base_parser(description="KH1 Client, for text interfacing.")
args, rest = parser.parse_known_args()
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main(args))
colorama.deinit()

View File

@@ -981,6 +981,6 @@ def launch():
parser = get_base_parser(description="KH2 Client, for text interfacing.")
args, rest = parser.parse_known_args()
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main(args))
colorama.deinit()

View File

@@ -1625,6 +1625,6 @@ def get_location_offset(mission_id):
def launch():
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main())
colorama.deinit()

View File

@@ -516,6 +516,6 @@ async def main() -> None:
def launch() -> None:
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(main())
colorama.deinit()

View File

@@ -177,7 +177,7 @@ def main() -> None:
import colorama
colorama.init()
colorama.just_fix_windows_console()
asyncio.run(_main())