Skip to content

LayeredFS: Allow patchLayeredFs if fsUnmountArchive symbol doesn't exist - #2245

Merged
TuxSH merged 2 commits into
LumaTeam:masterfrom
R-YaTian:lfs
Jun 1, 2026
Merged

TuxSH merged 2 commits into
LumaTeam:masterfrom
R-YaTian:lfs

Conversation

@R-YaTian

@R-YaTian R-YaTian commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Issue #2242 reported a rare case where a few official games (such as Metroid: Samus Returns) do not unmount any resources after mounting them (romfs, save, etc.), causing fsUnmountArchive to not be linked into their code section.
This PR introduces a solution: if the fsUnmountArchive symbol is not found, patchLayeredFs is still allowed, and the call to fsUnmountArchive is replaced with NOP.
Also, "UnMount" has been corrected to "Unmount".
Edit: This PR will fix #2242.

@eku

eku commented May 25, 2026

Copy link
Copy Markdown

Lot's of renaming of symbols over files with only three lines of funtional changes in one file. Why this?

@R-YaTian

Copy link
Copy Markdown
Contributor Author

Lot's of renaming of symbols over files with only three lines of funtional changes in one file. Why this?

image

@R-YaTian R-YaTian changed the title LayeredFS: Allow patchLayeredFs if fsUnMountArchive symbol doesn't exist LayeredFS: Allow patchLayeredFs if fsUnmountArchive symbol doesn't exist May 26, 2026
@TuxSH
TuxSH merged commit fc84e0d into LumaTeam:master Jun 1, 2026
@R-YaTian
R-YaTian deleted the lfs branch October 19, 2026 03:12
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.

[Bug] Regression with Luma 13.4.0: RomFS loading does not work anymore

3 participants