added a quick updating thing to resource extraction + fixed a bug where the timer warnings would play, upon death

This commit is contained in:
JHDev2006
2025-10-15 14:37:05 +01:00
parent 447b6d3ea7
commit 6b598e717d
5 changed files with 17 additions and 2 deletions

View File

@@ -4,9 +4,11 @@ extends AssetRipper
@onready var progress_bar: ProgressBar = %ProgressBar
@onready var error: Label = %Error
static var updating := false
func _ready() -> void:
Global.get_node("GameHUD").hide()
if updating: $MarginContainer/ProgressBar/Label.text = "UPDATING ASSETS..."
rom = FileAccess.get_file_as_bytes(Global.rom_path)
prg_rom_size = rom[4] * 16384
chr_rom = rom.slice(16 + prg_rom_size)