Build textures back into the ROM

This commit is contained in:
Ryan Dwyer
2021-02-13 00:01:41 +10:00
parent a59640e34e
commit 78bb8975d2
7 changed files with 3579 additions and 15 deletions
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -14,12 +14,12 @@
void loadTextureList(void)
{
extern u8 _texturesTableRomStart;
extern u8 _texturesTableRomEnd;
extern u8 _textureslistSegmentRomStart;
extern u8 _textureslistSegmentRomEnd;
u32 len = ((&_texturesTableRomEnd - &_texturesTableRomStart) + 15) & -16;
u32 len = ((&_textureslistSegmentRomEnd - &_textureslistSegmentRomStart) + 15) & -16;
g_Textures = malloc(len, MEMPOOL_PERMANENT);
func0000d410(g_Textures, &_texturesTableRomStart, len);
func0000d410(g_Textures, &_textureslistSegmentRomStart, len);
}
+2 -2
View File
@@ -5437,8 +5437,8 @@ glabel func0f173010
/* f1730f0: 030f3023 */ subu $a2,$t8,$t7
/* f1730f4: 24c6001f */ addiu $a2,$a2,0x1f
/* f1730f8: 2401fff8 */ addiu $at,$zero,-8
/* f1730fc: 3c0a01d6 */ lui $t2,%hi(_texturesSegmentRomStart)
/* f173100: 254a5f40 */ addiu $t2,$t2,%lo(_texturesSegmentRomStart)
/* f1730fc: 3c0a01d6 */ lui $t2,%hi(_texturesdataSegmentRomStart)
/* f173100: 254a5f40 */ addiu $t2,$t2,%lo(_texturesdataSegmentRomStart)
/* f173104: 01e1c824 */ and $t9,$t7,$at
/* f173108: 00065902 */ srl $t3,$a2,0x4
/* f17310c: 000b3100 */ sll $a2,$t3,0x4