Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tweak] mint/name gpARM_HuffmanTextDecomp #595

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ extern u16 gOam[];
extern u32 * gOamHiPutIt;
extern void (* sHBlankHandler2)(void);
// extern ??? gUnknown_03003750
// extern ??? gUnknown_03004150
extern void (*gpARM_HuffmanTextDecomp)(const char *, char *);
// extern ??? gUnknown_03004154
extern u16 * gOamAffinePutIt;
// extern ??? gUnknown_03004160
Expand Down
6 changes: 3 additions & 3 deletions src/ramfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern u8 gUnknown_03003750[]; // buffer to copy the code to

// pointers to the loaded functions
extern void (*gUnknown_03003740)(int, int, int, int);
extern void (*gUnknown_03004150)(const char *, char *);
extern void (*gpARM_HuffmanTextDecomp)(const char *, char *);
extern void (*gUnknown_03003130)(int, int, const u16 *, int);
extern void (*gUnknown_03004154)(int, int, const u16 *, int);
extern void (*gUnknown_03004960)(int, int, int);
Expand All @@ -29,7 +29,7 @@ void StoreRoutinesToIRAM(void)

// Set pointers to each of the functions
gUnknown_03003740 = (void *)(gUnknown_03003750 + (DrawGlyph - ARMCodeToCopy_Start));
gUnknown_03004150 = (void *)(gUnknown_03003750 + (DecodeString - ARMCodeToCopy_Start));
gpARM_HuffmanTextDecomp = (void *)(gUnknown_03003750 + (DecodeString - ARMCodeToCopy_Start));
gUnknown_03003130 = (void *)(gUnknown_03003750 + (PutOamHi - ARMCodeToCopy_Start));
gUnknown_03004154 = (void *)(gUnknown_03003750 + (PutOamLo - ARMCodeToCopy_Start));
gUnknown_03004960 = (void *)(gUnknown_03003750 + (MapFloodCoreStep - ARMCodeToCopy_Start));
Expand All @@ -43,7 +43,7 @@ void DrawGlyphRam(int a, int b, int c, int d)

void CallARM_DecompText(const char *a, char *b)
{
gUnknown_03004150(a, b);
gpARM_HuffmanTextDecomp(a, b);
}

void CallARM_PushToSecondaryOAM(int a, int b, const u16 *c, int d)
Expand Down
2 changes: 1 addition & 1 deletion sym_iwram.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
. = 0x003744; gOamHiPutIt = .;
. = 0x003748; sHBlankHandler2 = .;
. = 0x003750; gUnknown_03003750 = .;
. = 0x004150; gUnknown_03004150 = .;
. = 0x004150; gpARM_HuffmanTextDecomp = .;
. = 0x004154; gUnknown_03004154 = .;
. = 0x004158; gOamAffinePutIt = .;
. = 0x004160; IntrMain_Buffer = .;
Expand Down