mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-06-27 18:26:38 +00:00
* `osPiRawStartDma_recomp` and `osEPiRawStartDma` * `osPfsNumFiles` and `osPfsRepairId` * whoops, wrong name * Fix missing new line on message box * Use actual pointers in osPfsNumFiles_recomp
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
#include "ultramodern/ultra64.h"
|
|
#include "ultramodern/ultramodern.hpp"
|
|
|
|
#include "recomp.h"
|
|
#include "helpers.hpp"
|
|
|
|
extern "C" void osPfsInitPak_recomp(uint8_t * rdram, recomp_context* ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsFreeBlocks_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsAllocateFile_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsDeleteFile_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsFileState_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsFindFile_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsReadWriteFile_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsChecker_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
ctx->r2 = 1; // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsNumFiles_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
s32* max_files = _arg<1, s32*>(rdram, ctx);
|
|
s32* files_used = _arg<2, s32*>(rdram, ctx);
|
|
|
|
*max_files = 0;
|
|
*files_used = 0;
|
|
|
|
_return<s32>(ctx, 1); // PFS_ERR_NOPACK
|
|
}
|
|
|
|
extern "C" void osPfsRepairId_recomp(uint8_t * rdram, recomp_context * ctx) {
|
|
_return<s32>(ctx, 1); // PFS_ERR_NOPACK
|
|
}
|