diff --git a/.Sources/Tool Helpers.txt b/.Sources/Tool Helpers.txt new file mode 100644 index 0000000..d1803c9 --- /dev/null +++ b/.Sources/Tool Helpers.txt @@ -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 diff --git a/build.sh b/build.sh index 167add0..6aa07ae 100755 --- a/build.sh +++ b/build.sh @@ -20,6 +20,8 @@ cp -R "$eastdlib_src/Language Raws" $root_dir/. cp -R "$eastdlib_src/EA Standard Library" $root_dir/. cp -R "$eastdlib_src/Extensions" $root_dir/. +cp "$root_dir/.Sources/Tool Helpers.txt" $root_dir/Tools/. + # EA Tools mkdir -p $root_dir/Tools