21 lines
596 B
GDScript
21 lines
596 B
GDScript
extends Node
|
|
|
|
var ROM_filename := 'FF5_SCC_WepTweaks_Inus_Dash.sfc' # 'Final Fantasy V (Japan).sfc'
|
|
var GBA_filename := '2564 - Final Fantasy V Advance (U)(Independent).gba'
|
|
|
|
var rom_snes := File.new()
|
|
var thread := Thread.new()
|
|
|
|
func load_snes_rom(filename: String):
|
|
var error := rom_snes.open(filename, File.READ)
|
|
if error == OK:
|
|
SpriteLoader.load_snes_rom(rom_snes)
|
|
MapLoader.load_worldmap_block_properties(rom_snes)
|
|
var _thread_error = thread.start(SoundLoader, 'parse_rom', rom_snes)
|
|
|
|
func _ready():
|
|
load_snes_rom(ROM_filename)
|
|
|
|
func _exit_tree() -> void:
|
|
thread.wait_to_finish()
|