finish pokemon_storage_system_6
This commit is contained in:
@@ -5,107 +5,6 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
thumb_func_start sub_8094F90
|
|
||||||
sub_8094F90: @ 8094F90
|
|
||||||
movs r0, 0
|
|
||||||
bx lr
|
|
||||||
thumb_func_end sub_8094F90
|
|
||||||
|
|
||||||
thumb_func_start sub_8094F94
|
|
||||||
sub_8094F94: @ 8094F94
|
|
||||||
push {r4,r5,lr}
|
|
||||||
movs r5, 0x2
|
|
||||||
negs r5, r5
|
|
||||||
ldr r4, _08094FD0 @ =gMain
|
|
||||||
ldrh r1, [r4, 0x2E]
|
|
||||||
movs r0, 0x1
|
|
||||||
ands r0, r1
|
|
||||||
cmp r0, 0
|
|
||||||
bne _08094FEA
|
|
||||||
movs r0, 0x2
|
|
||||||
ands r0, r1
|
|
||||||
cmp r0, 0
|
|
||||||
beq _08094FB6
|
|
||||||
movs r0, 0x5
|
|
||||||
bl PlaySE
|
|
||||||
adds r5, 0x1
|
|
||||||
_08094FB6:
|
|
||||||
ldrh r1, [r4, 0x2E]
|
|
||||||
movs r0, 0x40
|
|
||||||
ands r0, r1
|
|
||||||
cmp r0, 0
|
|
||||||
beq _08094FD4
|
|
||||||
movs r0, 0x5
|
|
||||||
bl PlaySE
|
|
||||||
movs r0, 0x1
|
|
||||||
negs r0, r0
|
|
||||||
bl Menu_MoveCursor
|
|
||||||
b _08094FF2
|
|
||||||
.align 2, 0
|
|
||||||
_08094FD0: .4byte gMain
|
|
||||||
_08094FD4:
|
|
||||||
movs r0, 0x80
|
|
||||||
ands r0, r1
|
|
||||||
cmp r0, 0
|
|
||||||
beq _08094FF2
|
|
||||||
movs r0, 0x5
|
|
||||||
bl PlaySE
|
|
||||||
movs r0, 0x1
|
|
||||||
bl Menu_MoveCursor
|
|
||||||
b _08094FF2
|
|
||||||
_08094FEA:
|
|
||||||
bl Menu_GetCursorPos
|
|
||||||
lsls r0, 24
|
|
||||||
lsrs r5, r0, 24
|
|
||||||
_08094FF2:
|
|
||||||
movs r0, 0x2
|
|
||||||
negs r0, r0
|
|
||||||
cmp r5, r0
|
|
||||||
beq _08094FFE
|
|
||||||
bl sub_8095024
|
|
||||||
_08094FFE:
|
|
||||||
cmp r5, 0
|
|
||||||
blt _08095010
|
|
||||||
ldr r0, _0809501C @ =sPSSData
|
|
||||||
ldr r0, [r0]
|
|
||||||
lsls r1, r5, 3
|
|
||||||
ldr r2, _08095020 @ =0x00000c74
|
|
||||||
adds r0, r2
|
|
||||||
adds r0, r1
|
|
||||||
ldr r5, [r0]
|
|
||||||
_08095010:
|
|
||||||
lsls r0, r5, 16
|
|
||||||
asrs r0, 16
|
|
||||||
pop {r4,r5}
|
|
||||||
pop {r1}
|
|
||||||
bx r1
|
|
||||||
.align 2, 0
|
|
||||||
_0809501C: .4byte sPSSData
|
|
||||||
_08095020: .4byte 0x00000c74
|
|
||||||
thumb_func_end sub_8094F94
|
|
||||||
|
|
||||||
thumb_func_start sub_8095024
|
|
||||||
sub_8095024: @ 8095024
|
|
||||||
push {r4,r5,lr}
|
|
||||||
ldr r5, _08095048 @ =sPSSData
|
|
||||||
ldr r0, [r5]
|
|
||||||
ldr r4, _0809504C @ =0x00000cac
|
|
||||||
adds r0, r4
|
|
||||||
ldrb r0, [r0]
|
|
||||||
movs r1, 0x1
|
|
||||||
bl ClearStdWindowAndFrameToTransparent
|
|
||||||
ldr r0, [r5]
|
|
||||||
adds r0, r4
|
|
||||||
ldrb r0, [r0]
|
|
||||||
bl RemoveWindow
|
|
||||||
pop {r4,r5}
|
|
||||||
pop {r0}
|
|
||||||
bx r0
|
|
||||||
.align 2, 0
|
|
||||||
_08095048: .4byte sPSSData
|
|
||||||
_0809504C: .4byte 0x00000cac
|
|
||||||
thumb_func_end sub_8095024
|
|
||||||
|
|
||||||
@ file boundary?
|
@ file boundary?
|
||||||
|
|
||||||
thumb_func_start sub_8095050
|
thumb_func_start sub_8095050
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "new_menu_helpers.h"
|
#include "new_menu_helpers.h"
|
||||||
#include "pokemon_storage_system_internal.h"
|
#include "pokemon_storage_system_internal.h"
|
||||||
#include "strings.h"
|
#include "strings.h"
|
||||||
|
#include "constants/songs.h"
|
||||||
|
|
||||||
void InitMenu(void)
|
void InitMenu(void)
|
||||||
{
|
{
|
||||||
@@ -94,3 +95,53 @@ void AddMenu(void)
|
|||||||
ScheduleBgCopyTilemapToVram(0);
|
ScheduleBgCopyTilemapToVram(0);
|
||||||
sPSSData->field_CAE = 0;
|
sPSSData->field_CAE = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool8 sub_8094F90(void)
|
||||||
|
{
|
||||||
|
// Some debug flag?
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
s16 sub_8094F94(void)
|
||||||
|
{
|
||||||
|
s32 textId = -2;
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
|
if (JOY_NEW(A_BUTTON))
|
||||||
|
{
|
||||||
|
textId = Menu_GetCursorPos();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else if (JOY_NEW(B_BUTTON))
|
||||||
|
{
|
||||||
|
PlaySE(SE_SELECT);
|
||||||
|
textId = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (JOY_NEW(DPAD_UP))
|
||||||
|
{
|
||||||
|
PlaySE(SE_SELECT);
|
||||||
|
Menu_MoveCursor(-1);
|
||||||
|
}
|
||||||
|
else if (JOY_NEW(DPAD_DOWN))
|
||||||
|
{
|
||||||
|
PlaySE(SE_SELECT);
|
||||||
|
Menu_MoveCursor(1);
|
||||||
|
}
|
||||||
|
} while (0);
|
||||||
|
|
||||||
|
if (textId != -2)
|
||||||
|
sub_8095024();
|
||||||
|
|
||||||
|
if (textId >= 0)
|
||||||
|
textId = sPSSData->menuItems[textId].textId;
|
||||||
|
|
||||||
|
return textId;
|
||||||
|
}
|
||||||
|
|
||||||
|
void sub_8095024(void)
|
||||||
|
{
|
||||||
|
ClearStdWindowAndFrameToTransparent(sPSSData->field_CB0, TRUE);
|
||||||
|
RemoveWindow(sPSSData->field_CB0);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user