1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +00:00

Move __osPfsInodeCache and __osPfsPifRam (#1654)

* Move __osPfsInodeCache to pfsgetstatus.c

* Move __osPfsInodeCache to contfps.c and __osPfsPifRam to pfsisplug.c
This commit is contained in:
cadmic 2024-01-29 04:30:29 -08:00 committed by GitHub
parent 6e0d67f9ec
commit be731f8a35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -4,6 +4,8 @@
s32 __osPfsInodeCacheChannel = -1;
u8 __osPfsInodeCacheBank = 250;
__OSInode __osPfsInodeCache;
u16 __osSumcalc(u8* ptr, s32 length) {
s32 i;
u32 sum = 0;

View file

@ -1,8 +1,6 @@
#include "ultra64.h"
#include "global.h"
OSPifRam __osPfsPifRam;
s32 __osPfsGetStatus(OSMesgQueue* queue, s32 channel) {
s32 ret = 0;
OSMesg msg;

View file

@ -1,6 +1,8 @@
#include "ultra64.h"
#include "global.h"
OSPifRam __osPfsPifRam;
s32 osPfsIsPlug(OSMesgQueue* mq, u8* pattern) {
s32 ret = 0;
OSMesg msg;

View file

@ -5,8 +5,6 @@
(((p).ipage >= (pfs).inodeStartPage) && ((p).inode_t.bank < (pfs).banks) && ((p).inode_t.page >= 0x01) && \
((p).inode_t.page < 0x80))
__OSInode __osPfsInodeCache;
s32 __osPfsGetNextPage(OSPfs* pfs, u8* bank, __OSInode* inode, __OSInodeUnit* page) {
s32 ret;

View file

@ -457,7 +457,7 @@ offset,vram,.bss
1195F0,8012A4F0,src/libultra/io/motor.s
1196F0,8012A5F0,src/libultra/io/siacs.s
119710,8012A610,src/libultra/io/controller.s
1197A0,8012A6A0,src/libultra/io/pfsreadwritefile.s
1198A0,8012A7A0,src/libultra/io/pfsgetstatus.s
1197A0,8012A6A0,src/libultra/io/contpfs.s
1198A0,8012A7A0,src/libultra/io/pfsisplug.s
1198E0,8012A7E0,src/code/z_message_PAL.s
119900,8012A800,.end

1 offset vram .text
457 1198E0 8012A7E0 src/code/z_message_PAL.s
458 119900 8012A800 .end
459
460
461
462
463