mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Decomped FileRom_HandleOpen
Decomped by @chordtoll
This commit is contained in:
parent
2f9c4d0018
commit
00acb2eded
1
asm/include/main_02008240.inc
Normal file
1
asm/include/main_02008240.inc
Normal file
|
|
@ -0,0 +1 @@
|
|||
#pragma once
|
||||
|
|
@ -5221,25 +5221,3 @@ FileRom_Veneer_FileInit: ; 0x02008204
|
|||
.align 2, 0
|
||||
_0200820C: .word FileInit
|
||||
arm_func_end FileRom_Veneer_FileInit
|
||||
|
||||
arm_func_start FileRom_HandleOpen
|
||||
FileRom_HandleOpen: ; 0x02008210
|
||||
stmdb sp!, {r4, r5, r6, lr}
|
||||
mov r6, r0
|
||||
mov r5, r1
|
||||
mov r4, #1
|
||||
_02008220:
|
||||
mov r0, r6
|
||||
mov r1, r5
|
||||
bl sub_0207F6C4
|
||||
cmp r0, #0
|
||||
ldmneia sp!, {r4, r5, r6, pc}
|
||||
mov r0, r4
|
||||
bl CardPullOutWithStatus
|
||||
b _02008220
|
||||
arm_func_end FileRom_HandleOpen
|
||||
|
||||
arm_func_start sub_02008240
|
||||
sub_02008240: ; 0x02008240
|
||||
ldmia sp!, {r4, r5, r6, pc}
|
||||
arm_func_end sub_02008240
|
||||
|
|
|
|||
9
asm/main_02008240.s
Normal file
9
asm/main_02008240.s
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.include "asm/macros.inc"
|
||||
.include "main_02008240.inc"
|
||||
|
||||
.text
|
||||
|
||||
arm_func_start sub_02008240
|
||||
sub_02008240: ; 0x02008240
|
||||
ldmia sp!, {r4, r5, r6, pc}
|
||||
arm_func_end sub_02008240
|
||||
2
main.lsf
2
main.lsf
|
|
@ -13,6 +13,8 @@ Static main
|
|||
Object asm/main_02000DE0.o
|
||||
Object src/main_02003D2C.o
|
||||
Object asm/main_02003DB8.o
|
||||
Object src/main_02008210.o
|
||||
Object asm/main_02008240.o
|
||||
Object src/main_02008254.o
|
||||
Object asm/main_020082C4.o
|
||||
Object src/debug.o
|
||||
|
|
|
|||
13
src/main_02008210.c
Normal file
13
src/main_02008210.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "file_rom.h"
|
||||
|
||||
void CardPullOutWithStatus(u32 status);
|
||||
u32 sub_0207F6C4(struct file_stream* file, const u8* filepath);
|
||||
|
||||
void FileRom_HandleOpen(struct file_stream* file, const char* filepath) {
|
||||
while (TRUE) {
|
||||
if (sub_0207F6C4(file,filepath) != 0) {
|
||||
return;
|
||||
}
|
||||
CardPullOutWithStatus(1);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user