1
0
mirror of https://github.com/blawar/ooot.git synced 2024-07-07 12:32:37 +00:00
ooot/include/def/contpfs.h

15 lines
438 B
C
Raw Normal View History

2021-12-27 19:23:03 +00:00
#pragma once
2022-02-12 19:50:06 +00:00
struct OSPfs;
struct __OSPackId;
struct __OSInode;
2021-12-27 19:23:03 +00:00
extern u8 __osPfsInodeCacheBank;
s32 __osCheckId(OSPfs* pfs);
s32 __osCheckPackId(OSPfs* pfs, __OSPackId* check);
s32 __osGetId(OSPfs* pfs);
s32 __osIdCheckSum(u16* ptr, u16* csum, u16* icsum);
s32 __osPfsRWInode(OSPfs* pfs, __OSInode* inode, u8 flag, u8 bank);
s32 __osRepairPackId(OSPfs* pfs, __OSPackId* badid, __OSPackId* newid);
u16 __osSumcalc(u8* ptr, s32 length);