summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-06-29 14:32:15 +0300
committerTal Hayon <talhayon1@gmail.com>2022-06-29 14:32:15 +0300
commitd526edda8e2e8665bb4dae3dea845c55e0d2dec1 (patch)
tree9d82331b5a9cf5aefa6277b117bb4084753fb953 /src
parenteb2cf39bcf574f075853963a37bf0bfd2e89faed (diff)
Match LoadSwapGFX
Diffstat (limited to 'src')
-rw-r--r--src/vram.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vram.c b/src/vram.c
index 77a4f325..db97416f 100644
--- a/src/vram.c
+++ b/src/vram.c
@@ -167,13 +167,13 @@ bool32 LoadFixedGFX(Entity* entity, u32 gfxIndex) {
}
// If slotIndex != 0 the gfx loaded starting from that slot, else in the first fitting free one.
-NONMATCH("asm/non_matching/vram/LoadSwapGFX.inc", u32 LoadSwapGFX(Entity* entity, u32 count, u32 slotIndex)) {
+bool32 LoadSwapGFX(Entity* entity, u32 count, u32 slotIndex) {
u32 status;
if ((slotIndex == 0) && (slotIndex = FindFreeGFXSlots(count), slotIndex == 0)) {
#ifndef EU
CleanUpGFXSlots();
-#endif
slotIndex = FindFreeGFXSlots(count);
+#endif
if (slotIndex == 0) {
goto _080AE058;
}
@@ -185,12 +185,8 @@ NONMATCH("asm/non_matching/vram/LoadSwapGFX.inc", u32 LoadSwapGFX(Entity* entity
}
sub_080AE0C8(slotIndex, entity, status);
_080AE058:
- if (slotIndex != 0) {
- slotIndex = 1;
- }
- return slotIndex;
+ return slotIndex != 0;
}
-END_NONMATCH
void UnloadGFXSlots(Entity* param_1) {
u32 slotIndex;