ChocolateBird/scripts/loaders/rom_loader.gd

17 lines
427 B
GDScript3
Raw Normal View History

2023-07-25 16:33:45 +09:30
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()
func load_snes_rom(filename: String):
var error := rom_snes.open(filename, File.READ)
if error == OK:
SoundLoader.parse_rom(rom_snes)
SpriteLoader.load_snes_rom(rom_snes)
func _ready():
load_snes_rom(ROM_filename)