Skip to content

Extract canm data into .c POC#474

Open
ElectroDeoxys wants to merge 2 commits intopret:masterfrom
ElectroDeoxys:master
Open

Extract canm data into .c POC#474
ElectroDeoxys wants to merge 2 commits intopret:masterfrom
ElectroDeoxys:master

Conversation

@ElectroDeoxys
Copy link
Contributor

I wanted to start pulling out the AnimatedColorData from dungeon_sbin, but I had to split it into 2 so I could git a .c file in between. For now only b00canm is extracted but I intend to run a script to extract all bXXcanm data, but before that I wanted feedback on the structure/naming/directory choices/etc, and if possible not having to split dungeon_sbin.s

@@ -0,0 +1,13 @@
JASC-PAL
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's an existing graphics/dungeon/pal subdir, so these files could go there under graphics/dungeon/pal/b00canm/*.

@@ -0,0 +1,74 @@
#include "global.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

If there are a ton of color files, they could go in an additional subdir under data to keep them separate from other data. Perhaps src/data/pal/* to match graphics/dungeon/pal?

data/dungeon_sbin.o(.rodata);
data/dungeon_sbin1.o(.rodata);
src/data/b00canm.o(.rodata);
data/dungeon_sbin2.o(.rodata);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be fine to split up dungeon_sbin while creating all the palette files. It's the same as splitting ASM files when decompiling a particular C function.

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