Clean up build logic and file structure

This commit is contained in:
Rachel
2024-05-19 23:02:48 -07:00
parent f5702cd16f
commit ce08786ddf
5 changed files with 19 additions and 15 deletions

View File

@@ -1,10 +0,0 @@
#ifndef POKEPLATINUM_FOOTPRINTSIZEDATA_H
#define POKEPLATINUM_FOOTPRINTSIZEDATA_H
typedef struct FootprintSizeData {
u8 hasFootprint;
u8 footprintSize;
u16 unk_02;
} FootprintSizeData;
#endif // POKEPLATINUM_FOOTPRINTSIZEDATA_H

View File

@@ -0,0 +1,11 @@
#ifndef POKEPLATINUM_FOOTPRINT_DATA_H
#define POKEPLATINUM_FOOTPRINT_DATA_H
typedef struct FootprintData {
u8 hasFootprint;
u8 footprintSize;
u16 unk_02;
} FootprintData;
#endif // POKEPLATINUM_FOOTPRINT_DATA_H

View File

@@ -773,8 +773,11 @@ pl_growtbl_narc = custom_target('pl_growtbl.narc',
species_header_target = meson.current_build_dir()
gen_species_headers = custom_target('auto-generated species headers',
output: 'gen_species_headers',
gen_species_headers = custom_target('gen_species_headers',
output: [
'tutor_movesets.h',
'footprint_data.h',
],
input: personal_files,
env: json2bin_env,
depends: [ py_consts_generators ],

View File

@@ -11,7 +11,7 @@
#include "touch_screen.h"
#include "struct_defs/struct_0205AA50.h"
#include "overlay113/struct_ov113_02260818.h"
#include "overlay113/FootprintSizeData.h"
#include "overlay113/footprint_data.h"
#include "message.h"
#include "constants/species.h"

View File

@@ -140,10 +140,10 @@ with open(output_path, "w") as output_file:
output_file.writelines(generated_disclaimer)
output_file.write("#ifndef POKEPLATINUM_GENERATED_FOOTPRINT_DATA_H\n")
output_file.write("#define POKEPLATINUM_GENERATED_FOOTPRINT_DATA_H\n")
output_file.write("#include \"overlay113/FootprintSizeData.h\"\n")
output_file.write("#include \"overlay113/footprint_data.h\"\n")
output_file.write("#include \"constants/species.h\"\n")
output_file.write("\n")
output_file.write("static const FootprintSizeData sSpeciesFootprintData[NATIONAL_DEX_COUNT + 1] = {\n")
output_file.write("static const FootprintData sSpeciesFootprintData[NATIONAL_DEX_COUNT + 1] = {\n")
sorted_array = sorted(species_footprints.items())