Pre merge

This commit is contained in:
Rekku 2024-09-19 14:40:29 +01:00
parent 21d07a9580
commit 5e2359b6bf
3 changed files with 4 additions and 6 deletions

View file

@ -425,7 +425,7 @@ show_percentage = false
unique_name_in_owner = true
custom_minimum_size = Vector2(375, 125)
layout_mode = 2
text = "RESET RETROCECK"
text = "RESET RETRODECK"
icon = ExtResource("11_g1uhn")
icon_alignment = 1
vertical_icon_alignment = 0

View file

@ -78,17 +78,16 @@ func _do_complete(button: Button) ->void:
"quick_rewind_button":
class_functions.quick_rewind_state = "false"
"reset_retrodeck_button":
print ("TESTS")
var dir = DirAccess.open(class_functions.rd_conf.get_base_dir())
if dir is DirAccess:
dir.rename(class_functions.rd_conf,class_functions.rd_conf.get_base_dir() + "/retrodeck.bak")
dir.remove(class_functions.lockfile)
class_functions.change_global(["reset", "retrodeck"], "prepapre_component", button, "")
class_functions.change_global(["reset", "retrodeck"], "prepare_component", button, "")
"reset_all_emulators_button":
print ("TESTS")
var tmp_txt = button.text
button.text = "RESETTING-NOW"
class_functions.change_global(["reset", "all"], "prepapre_component", button, "")
class_functions.change_global(["reset", "all"], "prepare_component", button, "")
await class_functions.wait(2.0)
button.text = "RESET COMPLETED"
await class_functions.wait(3.0)
button.text = tmp_txt

View file

@ -329,7 +329,6 @@ func change_global(parameters: Array, preset: String, button: Button, state: Str
logger("d", "Exit code: %s" % result["exit_code"])
_:
var command_parameter: Array = [preset, parameters]
print (preset, parameters)
logger("d", "Change Global: %s System: %s" % command_parameter)
var result: Dictionary = await run_thread_command(wrapper_command, command_parameter, false)
logger("d", "Exit code: %s" % result["exit_code"])