From b7e7ffc4abf0ccd5a3b9ada387821f0f1cfd148f Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Tue, 22 Apr 2025 11:41:30 +0200 Subject: [PATCH] fix order of creating settings dict in run.py --- run.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run.py b/run.py index cbfc71b..88a0bff 100644 --- a/run.py +++ b/run.py @@ -48,6 +48,13 @@ if os.path.exists('settings.json'): vsync = settings['vsync'] fps_limit = settings['fps_limit'] else: + resolution = get_closest_resolution() + antialiasing = 4 + fullscreen = False + style = arcade.Window.WINDOW_STYLE_DEFAULT + vsync = True + fps_limit = 0 + settings = { "music": True, "music_volume": 50, @@ -59,13 +66,6 @@ else: "discord_rpc": True } - resolution = get_closest_resolution() - antialiasing = 4 - fullscreen = False - style = arcade.Window.WINDOW_STYLE_DEFAULT - vsync = True - fps_limit = 0 - with open("settings.json", "w") as file: file.write(json.dumps(settings))