Move pl_item_data and nuts_data to res/items

This commit is contained in:
Rachel 2023-09-17 13:22:43 -07:00
parent d36e988296
commit e939d90e5b
8 changed files with 53 additions and 47 deletions

View File

@ -285,8 +285,14 @@ RomSpec
File graphic/worldtrade.narc
File itemtool/itemdata/item_data.narc
File itemtool/itemdata/item_icon.narc
File itemtool/itemdata/nuts_data.narc
File itemtool/itemdata/pl_item_data.narc
Root /itemtool/itemdata
HostRoot res/items
File nuts_data.narc
File pl_item_data.narc
Root /
HostRoot res/prebuilt
File poketool/icongra/pl_poke_icon.narc
File poketool/icongra/poke_icon.narc
File poketool/pokefoot/pokefoot.narc

43
res/items/meson.build Normal file
View File

@ -0,0 +1,43 @@
nuts_data_format_txt = files('nuts_data_format.txt')
nuts_data_csv = files('nuts_data.csv')
nuts_data_narc = custom_target('nuts_data.narc',
output: 'nuts_data.narc',
input: [
nuts_data_format_txt,
nuts_data_csv
],
command: [
csv2bin_exe,
'compile',
'@INPUT1@',
'@OUTPUT0@',
'@INPUT0@',
'--narc',
'-i', '@SOURCE_ROOT@/include'
]
)
pl_item_data_format_txt = files('pl_item_data_format.txt')
pl_item_data_csv = files('pl_item_data.csv')
pl_item_data_narc = custom_target('pl_item_data.narc',
output: 'pl_item_data.narc',
input: [
pl_item_data_format_txt,
pl_item_data_csv
],
command: [
csv2bin_exe,
'compile',
'@INPUT1@',
'@OUTPUT0@',
'@INPUT0@',
'--narc',
'--pad', '0xFF',
'-i', '@SOURCE_ROOT@/include'
]
)
nitrofs_files += nuts_data_narc
nitrofs_files += pl_item_data_narc

View File

@ -3,5 +3,6 @@ nitrofs_files = []
# Prebuilt files
subdir('prebuilt')
# New data directories
# Decompiled data directories
subdir('items')
subdir('moves')

View File

@ -1,47 +1,3 @@
nuts_data_format_txt = files('nuts_data_format.txt')
nuts_data_csv = files('nuts_data.csv')
nuts_data_narc = custom_target('nuts_data.narc',
output: 'nuts_data.narc',
input: [
nuts_data_format_txt,
nuts_data_csv
],
command: [
csv2bin_exe,
'compile',
'@INPUT1@',
'@OUTPUT0@',
'@INPUT0@',
'--narc',
'-i', '@SOURCE_ROOT@/include'
]
)
pl_item_data_format_txt = files('pl_item_data_format.txt')
pl_item_data_csv = files('pl_item_data.csv')
pl_item_data_narc = custom_target('pl_item_data.narc',
output: 'pl_item_data.narc',
input: [
pl_item_data_format_txt,
pl_item_data_csv
],
command: [
csv2bin_exe,
'compile',
'@INPUT1@',
'@OUTPUT0@',
'@INPUT0@',
'--narc',
'--pad', '0xFF',
'-i', '@SOURCE_ROOT@/include'
]
)
nitrofs_files += nuts_data_narc
nitrofs_files += pl_item_data_narc
prebuilt_files = [
'item_data.narc',
'item_icon.narc'