Skip to content

Implement osPfsInit and osPfsIsPlug functions with error handling#146

Open
Gabryel-lima wants to merge 1 commit into
N64Recomp:mainfrom
Gabryel-lima:main
Open

Implement osPfsInit and osPfsIsPlug functions with error handling#146
Gabryel-lima wants to merge 1 commit into
N64Recomp:mainfrom
Gabryel-lima:main

Conversation

@Gabryel-lima
Copy link
Copy Markdown

This pull request adds new stub implementations for PFS (Controller Pak) related functions in the librecomp/src/pak.cpp file. These stubs help simulate the absence of a controller pak and ensure that related calls do not cause errors. This resolves call dependencies of osPfs* and forces the path expected by the game when there is no memcard, preventing integration failures and maintaining stable and predictable behavior.

New PFS stub functions:

  • Added osPfsInit_recomp, which sets the return code to indicate no controller pak is present.
  • Added osPfsIsPlug_recomp, which sets the output pattern to 0 (no pak plugged in) and the return code to success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant