Skip to content

Commit c1a76c6

Browse files
committed
Fix game data being updated while theme is unloading
1 parent 9395aeb commit c1a76c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/RetroHub.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ func launch_game() -> void:
152152
RetroHubUI.show_warning(NO_EMULATOR_WARNING_TEXT % curr_game_data.name)
153153
return
154154
_running_game = true
155-
_update_game_statistics()
156155
print("Launching game ", launched_game_data.name)
157156
RetroHubMedia._stop_thread()
158157
emit_signal("_game_loaded", launched_game_data)
159158
RetroHubConfig.unload_theme()
159+
_update_game_statistics()
160160

161161
func _launch_game_process() -> int:
162162
var system_emulators : Array = RetroHubConfig._systems_raw[launched_system_data.name]["emulator"]

0 commit comments

Comments
 (0)