Skip to content

Fix context generation script#303

Merged
em-eight merged 1 commit into
snailspeed3:masterfrom
henrymkw:fix-context-gen-file
Sep 16, 2025
Merged

Fix context generation script#303
em-eight merged 1 commit into
snailspeed3:masterfrom
henrymkw:fix-context-gen-file

Conversation

@henrymkw

@henrymkw henrymkw commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

decompctx.py only checks the first line for #pragma once or #ifndef, resulting in redefinition errors when they're not on the first line. This PR fixes this by simplifying logic in process_file() to only check the included file path. I also added a print to indicate if the context file generation was successful or not.

I tested on a few different source files and it seems to work.

@decomp-dev

decomp-dev Bot commented Aug 2, 2025

Copy link
Copy Markdown

Report for RMCP01 (336d717 - 3a6ebd8)

No changes

@em-eight

Copy link
Copy Markdown
Contributor

Nice, I like the workaround 😉

@em-eight em-eight merged commit 78572c9 into snailspeed3:master Sep 16, 2025
1 check passed
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