Use actual pointers in osPfsNumFiles_recomp

This commit is contained in:
angie 2024-06-18 13:00:56 -04:00
parent 9a5346ed00
commit dfc91552d6
2 changed files with 8 additions and 6 deletions

View file

@ -37,11 +37,11 @@ extern "C" void osPfsChecker_recomp(uint8_t * rdram, recomp_context * ctx) {
}
extern "C" void osPfsNumFiles_recomp(uint8_t * rdram, recomp_context * ctx) {
PTR(s32) max_files = _arg<1, PTR(s32)>(rdram, ctx);
PTR(s32) files_used = _arg<2, PTR(s32)>(rdram, ctx);
s32* max_files = _arg<1, s32*>(rdram, ctx);
s32* files_used = _arg<2, s32*>(rdram, ctx);
MEM_W(0, max_files) = 0;
MEM_W(0, files_used) = 0;
*max_files = 0;
*files_used = 0;
_return<s32>(ctx, 1); // PFS_ERR_NOPACK
}

View file

@ -304,9 +304,10 @@ extern "C" void osPiRawStartDma_recomp(RDRAM_ARG recomp_context * ctx) {
"Stub `osPiRawStartDma_recomp` function called!\n"
"Most games do not call this function directly, which means the libultra function\n"
"that uses this function was not properly named.\n"
"\n"
"If you triggered this message, please make sure you have properly identified\n"
"every libultra function on your recompiled game. If you are sure every libultra\n"
"function has been identified and you still get this issue then open an issue on\n"
"function has been identified and you still get this problem then open an issue on\n"
"the N64ModernRuntime Github repository mentioning the game you are trying to\n"
"recompile and steps to reproduce the issue.\n"
"\n"
@ -320,9 +321,10 @@ extern "C" void osEPiRawStartDma_recomp(RDRAM_ARG recomp_context * ctx) {
"Stub `osEPiRawStartDma_recomp` function called!\n"
"Most games do not call this function directly, which means the libultra function\n"
"that uses this function was not properly named.\n"
"\n"
"If you triggered this message, please make sure you have properly identified\n"
"every libultra function on your recompiled game. If you are sure every libultra\n"
"function has been identified and you still get this issue then open an issue on\n"
"function has been identified and you still get this problem then open an issue on\n"
"the N64ModernRuntime Github repository mentioning the game you are trying to\n"
"recompile and steps to reproduce the issue.\n"
"\n"