搜索

PythonReactSEOPDF
GitHub Skill

rename-a-c-file-or-header-file

Renaming a C file or associated header (.h) file requires additional steps in decompilation projects or the build will fail. Use this skill when you want to rename a C file and/or a header file.

cdlewis☆ 67 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Rename a C file or a Header File

Instructions

C files and their associated header files are mapped to specific ROM addresses via the Splat project configuration in snowboardkids2.yaml.

A file will typically have a code segment, such as:

- [0x4A40, c]

It may also have data and/or rodata segments. Data segment(s) are mapped to the code via the third argument. The name specified in the third argument must match the name of the code segment. In this case the code segment has no name so it defaults to using its ROM address as a name (4A40). For example:

- [0x8CBA0, .data, 4A40]

To rename 4A40.c to credits.c, we would need to do the following:

- [0x4A40, c, credits]

...

- [0x8CBA0, .data, credits]

Naturally, the reverse is also true. To rename a segment that has already been named, you must change each instance of that name to the new name. In this case you would need to change 'credits' to your desired new file name.

Custom Make Rules

In rare cases a C file will have a custom compiler flags. Be sure to check the project Makefile and update the C file's name there also.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-03
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!