Changed paths for new data subtree

This commit is contained in:
Luke Hubmayer-Werner 2024-06-26 20:43:37 +09:30
parent be222ce1da
commit edbfedfdd0
4 changed files with 10 additions and 9 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ downloaded_saves/
.import/
build/
output/
scratch/

View File

@ -136,10 +136,10 @@ func _ready():
thread = Thread.new()
structdefs.merge(STRUCT.get_base_structarraytypes())
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/structs_SNES_stubs.tsv', structdefs)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs_SNES_stubs.tsv', structdefs)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs/SNES_stubs.tsv', structdefs)
structdefs.merge(STRUCT_SNES.get_structtypes(), true) # Overwrite the stubs!
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs_SNES_save.tsv', structdefs)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs_SNES.tsv', structdefs)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs/SNES_save.tsv', structdefs)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs/SNES.tsv', structdefs)
var _error := psx_productcode_regex.compile('(S[A-Z]{3}_\\d{3}\\.\\d{2});(\\d)')
# Debugging breakpoint
pass

View File

@ -167,4 +167,4 @@ func delete_save_slot(sram: File, slot_id: int):
sram.store_16(0)
func _ready():
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs_SNES_save.tsv', struct_types)
STRUCT.parse_struct_definitions_from_tsv_filename('res://data/5/structs/SNES_save.tsv', struct_types)

View File

@ -8,11 +8,11 @@ var tables_raw = {}
var tables = {}
var glyph_tables := {
'RPGe_dialog': Common.load_glyph_table('res://data/5/glyph_tables/Glyphs_dialog_RPGe.txt'),
'RPGe_small': Common.load_glyph_table('res://data/5/glyph_tables/Glyphs_small_RPGe.txt'),
'SNES_dialog': Common.load_glyph_table('res://data/5/glyph_tables/Glyphs_dialog_SNES.txt'),
'SNES_kanji': Common.load_glyph_table('res://data/5/glyph_tables/Glyphs_dialog_kanji_SNES.txt'),
'SNES_small': Common.load_glyph_table('res://data/5/glyph_tables/Glyphs_small_SNES.txt'),
'RPGe_dialog': Common.load_glyph_table('res://data/5/glyphs/SNES_dialog_RPGe.txt'),
'RPGe_small': Common.load_glyph_table('res://data/5/glyphs/SNES_small_RPGe.txt'),
'SNES_dialog': Common.load_glyph_table('res://data/5/glyphs/SNES_dialog.txt'),
'SNES_kanji': Common.load_glyph_table('res://data/5/glyphs/SNES_dialog_kanji.txt'),
'SNES_small': Common.load_glyph_table('res://data/5/glyphs/SNES_small.txt'),
}
static func decode_string(bytes, glyph_table: PoolStringArray, trim_trailing_whitespace: bool = true) -> String: