Repository navigation
Installed mod folders: one Settings > Mods toggle per finished mod, any platform - #77
Merged
Merged
Conversation
…ny platform A folder in the mods directory with a mod.json and an install/ folder (files at their game paths) is one mod. While its mod.json does not say "enabled": false, install/ is one more mods root: its files override the game's like loose files (loose files in <mods> win), its textures/ joins the texture pack, its obj/ counts for the model budget prescan. A folder with a mod.json is never read as part of the loose-file tree. The Mods page already lists such folders and flips "enabled" in their mod.json; until now only run.sh's charmod build acted on it, so a mod could not be switched on Android or a release install. - hooks_io.cpp: mod_roots() (enabled folders' install/), passed to the package index as extra dirs; texture pack extra dirs provider - package_mods.cpp walk(): skip folders that hold a mod.json - hooks_models.cpp: budget prescan covers the mod folders' obj/ - psp_tex_pack: psp_texpack_set_extra_dirs_provider; ids found only in an extra dir load from it (the main pack wins on the same id) - docs: loose-file-mods.md, mods/README.md, ARCHITECTURE.md Tested on the desktop (Vulkan): a folder with 9 models + a 4096 px texture: on = overrides + "[TEXPACK] mod folder pack", model budget raised; "enabled": false = retail models, nothing from the folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A folder in the mods directory with a
mod.jsonand aninstall/folder (files at their game paths) is one mod. While its mod.json does not say"enabled": false,install/is one more mods root: its files override the game's (loose files in win), itstextures/joins the texture pack, itsobj/counts for the model budget. The Settings > Mods page already listed such folders and flippedenabled; until now only run.sh's charmod build acted on it, so a mod could not be switched on Android or a release install.Tested: desktop (on: overrides + texture pack + raised model budget; off: retail) and RP6 APK ("mod folder on" in the log, the mod in game).
Release notes
🤖 Generated with Claude Code