Skip to content

Remove Species Graphics Script#1041

Open
h2o-DS wants to merge 4 commits intopret:mainfrom
h2o-DS:species_gen
Open

Remove Species Graphics Script#1041
h2o-DS wants to merge 4 commits intopret:mainfrom
h2o-DS:species_gen

Conversation

@h2o-DS
Copy link
Copy Markdown
Collaborator

@h2o-DS h2o-DS commented Mar 28, 2026

Moves the species front and back sprites narc generation from a python script to meson generators. The order file is an additional output to speciesproc.

@h2o-DS h2o-DS requested a review from lhearachel March 28, 2026 02:45
Comment thread res/pokemon/meson.build Outdated
Comment thread tools/dataproc/src/common.h Outdated
Comment thread tools/dataproc/src/speciesproc.c
Comment on lines +81 to +85
typedef struct order_template order_template_t;
struct order_template {
const char *out_filename;
FILE *out_file;
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Couldn't this just be a header_template_t without a header and footer? e.g., just use a file in tools/dataproc/data that only has the magic comment-string. I think that might require some refactoring to support a generic template name, though, rather than one that maps to the expected output filename.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was to be explicit about the intention of the file and skip the header_comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair! Something we might consider, then, is making the common_init API more extensible by passing a meta-struct (or a pointer to one) that contains all of these templates.

@h2o-DS
Copy link
Copy Markdown
Collaborator Author

h2o-DS commented Mar 28, 2026

Addressed comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants