fix order of creating settings dict in run.py

This commit is contained in:
csd4ni3l
2025-04-22 11:41:30 +02:00
parent 78c981b399
commit b7e7ffc4ab

14
run.py
View File

@@ -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))