mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-10-01 14:00:41 -05:00
Clean up build logic and file structure
This commit is contained in:
@@ -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
|
||||
11
include/overlay113/footprint_data.h
Normal file
11
include/overlay113/footprint_data.h
Normal 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
|
||||
|
||||
@@ -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 ],
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user