Allow .vert and .frag files to be imported via modfs

This commit is contained in:
EmeraldLockdown 2026-07-05 15:23:52 -05:00
parent 5501732429
commit 6faba75f87
2 changed files with 7 additions and 7 deletions

View file

@ -29,7 +29,7 @@ The ModFS files are located in the `sav` directory at the usual save file locati
- Can contain only valid ASCII characters, no `*` or `\`
- Cannot be called `properties.json` (this name is reserved for ModFS internal properties)
- Only the following extensions (and extension-less files) are allowed:
- text: `.txt`, `.json`, `.ini`, `.sav`
- text: `.txt`, `.json`, `.ini`, `.sav`, `.vert`, `.frag`
- actors: `.bin`, `.col`
- behaviors: `.bhv`
- textures: `.tex`, `.png`

View file

@ -26,12 +26,12 @@ static std::vector<struct ModFs *> sModFsList = {};
#define MOD_FS_FILE_IS_PUBLIC_DEFAULT false
static const char *MOD_FS_FILE_ALLOWED_EXTENSIONS[] = {
".txt", ".json", ".ini", ".sav", // text
".bin", ".col", // actors
".bhv", // behaviors
".tex", ".png", // textures
".lvl", // levels
".m64", ".aiff", ".mp3", ".ogg", // audio
".txt", ".json", ".ini", ".sav", ".vert", ".frag" // text
".bin", ".col", // actors
".bhv", // behaviors
".tex", ".png", // textures
".lvl", // levels
".m64", ".aiff", ".mp3", ".ogg", // audio
NULL
};