mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-18 14:02:48 -04:00
Fix menu bug & kart textures (#32)
* Fix menu bug * Fix undefined behaviour * Fix kart textures * Fix boost texture * Rename as per review * Fix buffer overflows --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -1521,10 +1521,10 @@ u8 *load_lakitu_textures_x64(const char** textureList, size_t length) {
|
||||
gNextFreeMemoryAddress += size;
|
||||
size_t offset = 0;
|
||||
for (size_t i = 0; i < length; i++) {
|
||||
//u8 *tex = (u8 *) LOAD_ASSET(textureList[i]);
|
||||
u8 *tex = (u8 *) LOAD_ASSET(textureList[i]);
|
||||
size_t texSize = ResourceGetTexSizeByName(textureList[i]);
|
||||
printf("\nTEX SIZE: %X\n\n", texSize);
|
||||
memcpy(&textures[offset], textureList[i], texSize);
|
||||
//printf("\nTEX SIZE: %X\n\n", texSize);
|
||||
memcpy(&textures[offset], tex, texSize);
|
||||
offset += texSize;
|
||||
}
|
||||
return textures;
|
||||
|
||||
Reference in New Issue
Block a user