summaryrefslogtreecommitdiff
path: root/src/field/slot_machine.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-11-11 12:53:51 -0800
committerGitHub <noreply@github.com>2017-11-11 12:53:51 -0800
commit999c4d59793e761ca71ab7b27272de46d78de138 (patch)
treee92c7c464611db96d956a97f033f9f4d63d23493 /src/field/slot_machine.c
parented8c51dd404287c6355ba75dc4b9e2944d80e1d9 (diff)
parent4b1db681ea1e6a3b1e2d1c28699a94cb1393dc88 (diff)
Merge pull request #455 from ProjectRevoTPP/remove_pointers
eliminate remaining pointers from dissassembly
Diffstat (limited to 'src/field/slot_machine.c')
-rw-r--r--src/field/slot_machine.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/field/slot_machine.c b/src/field/slot_machine.c
index d6b20feaa..89ec68b0a 100644
--- a/src/field/slot_machine.c
+++ b/src/field/slot_machine.c
@@ -3,6 +3,7 @@
#include "decompress.h"
#include "palette.h"
#include "task.h"
+#include "ewram.h"
struct UnkStruct2000000 {
/*0x00*/ u8 filler00[61];
@@ -15,8 +16,6 @@ struct UnkStruct1 {
/*0x02*/ s16 unk02;
};
-extern struct UnkStruct2000000 gSharedMem;
-
extern struct UnkStruct1 *gUnknown_083ED048[];
extern const u16 gPalette_83EDE24[];
@@ -40,7 +39,7 @@ void sub_8104CAC(u8 arg0) {
sub_8104DA4();
- task = &gTasks[gSharedMem.unk3D];
+ task = &gTasks[ewram0_8->unk3D];
task->data[1] = arg0;
i = 0;
@@ -71,9 +70,9 @@ void sub_8106448(void) {
u32 offsetRead, offsetWrite;
u32 size;
- LZDecompressWram(gSlotMachine_Gfx, (void *) 0x02010000);
+ LZDecompressWram(gSlotMachine_Gfx, ewram10000_2);
- offsetRead = 0x02010000;
+ offsetRead = (u32)ewram10000_2;
offsetWrite = BG_VRAM;
size = SLOTMACHINE_GFX_TILES * 32;
while (TRUE)