Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef TOOL_HELPERS | ||
#define TOOL_HELPERS | ||
|
||
#ifdef _FE6_ | ||
#ifndef TextTable | ||
#define TextTable 0x0F635C | ||
#endif | ||
#ifndef PortraitTable | ||
#define PortraitTable 0x66074C | ||
#endif | ||
#endif | ||
|
||
|
||
#ifdef _FE7_ | ||
#ifndef TextTable | ||
#define TextTable 0xB808AC | ||
#endif | ||
#ifndef PortraitTable | ||
#define PortraitTable 0xC96584 | ||
#endif | ||
#endif | ||
|
||
|
||
#ifdef _FE8_ | ||
#ifndef TextTable | ||
#define TextTable 0x15D48C | ||
#endif | ||
#ifndef PortraitTable | ||
#define PortraitTable 0x8ACBC4 | ||
#endif | ||
#endif | ||
|
||
|
||
//For use with ParseFile | ||
#define setText(textID, offset) "PUSH; ORG (TextTable+4*textID); POIN (offset | 0x80000000); POP" //Anti-huffman | ||
|
||
|
||
//For use with PortraitFormatter | ||
#define setMugEntry(mugEntry, mugLocation, mouthX, mouthY, eyeX, eyeY) "PUSH; ORG PortraitTable+mugEntry*0x1C; POIN mugLocation; POIN mugLocation+0x1624; POIN mugLocation+0x1604; POIN mugLocation+0x1004; WORD 0x00000000; BYTE mouthX mouthY eyeX eyeY; WORD 0x01; POP" | ||
#define setMugEntry(mugEntry, mugLocation, mouthX, mouthY, eyeX, eyeY, eyeControl) "PUSH; ORG PortraitTable+mugEntry*0x1C; POIN mugLocation; POIN mugLocation+0x1624; POIN mugLocation+0x1604; POIN mugLocation+0x1004; WORD 0x00000000; BYTE mouthX mouthY eyeX eyeY; WORD eyeControl; POP" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters