mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-06-25 17:33:10 +00:00
Implement osPfsInit and osPfsIsPlug functions with error handling
This commit is contained in:
parent
03c3bd8d08
commit
7ba2f79bf9
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,16 @@ extern "C" void osPfsInitPak_recomp(uint8_t * rdram, recomp_context* ctx) {
|
|||
ctx->r2 = 1; // PFS_ERR_NOPACK
|
||||
}
|
||||
|
||||
extern "C" void osPfsInit_recomp(uint8_t * rdram, recomp_context * ctx) {
|
||||
ctx->r2 = 1; // PFS_ERR_NOPACK
|
||||
}
|
||||
|
||||
extern "C" void osPfsIsPlug_recomp(uint8_t * rdram, recomp_context * ctx) {
|
||||
u8* pattern = _arg<1, u8*>(rdram, ctx);
|
||||
*pattern = 0; // No controller pak plugged in
|
||||
ctx->r2 = 0;
|
||||
}
|
||||
|
||||
extern "C" void osPfsFreeBlocks_recomp(uint8_t * rdram, recomp_context * ctx) {
|
||||
ctx->r2 = 1; // PFS_ERR_NOPACK
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue