Skip to content

Commit

Permalink
Support multiple ".party" files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgriffin committed Nov 10, 2023
1 parent 72ebc41 commit e5d1e2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ const union AnimCmd *const gAnims_MonPic[MAX_MON_PIC_FRAMES] =
#include "data/pokemon_graphics/front_pic_table.h"

#include "data/text/trainer_class_names.h"

const struct Trainer gTrainers[] =
{
#include "data/trainers.h"
};

#include "data/text/species_names.h"
#include "data/text/move_names.h"
4 changes: 0 additions & 4 deletions tools/trainerproc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,6 @@ static void fprint_trainers(FILE *f, struct Parsed *parsed)

fprintf(f, "#line 1 \"%s\"\n", parsed->source->path);
fprintf(f, "\n");
fprintf(f, "const struct Trainer gTrainers[] =\n");
fprintf(f, "{\n");

for (int i = 0; i < parsed->trainers_n; i++)
{
Expand Down Expand Up @@ -1585,8 +1583,6 @@ static void fprint_trainers(FILE *f, struct Parsed *parsed)
fprintf(f, " },\n");
fprintf(f, " },\n");
}

fprintf(f, "};\n");
}

static void usage(FILE *file, char *argv0)
Expand Down

0 comments on commit e5d1e2c

Please sign in to comment.