This commit is contained in:
Gabryel Lima da Silva 2026-05-28 16:24:08 +00:00 committed by GitHub
commit 233a90a8b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 0 deletions

View file

@ -1032,4 +1032,6 @@ std::string recomp::mods::error_to_string(CodeModLoadError error) {
case CodeModLoadError::UnsupportedApiVersion:
return "Mod DLL has an unsupported API version";
}
return "Unknown code mod load error";
}

View file

@ -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
}

View file

@ -704,6 +704,8 @@ bool wait_for_game_started(uint8_t* rdram, recomp_context* context) {
case GameStatus::None:
return true;
}
return true;
}
recomp::SaveType recomp::get_save_type() {