diff --git a/docs/lua/guides/modfs.md b/docs/lua/guides/modfs.md index 5e840db63..d4ac51abd 100644 --- a/docs/lua/guides/modfs.md +++ b/docs/lua/guides/modfs.md @@ -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` diff --git a/src/pc/mods/mod_fs.cpp b/src/pc/mods/mod_fs.cpp index 5dcd7fb8b..b1dc5a7a5 100644 --- a/src/pc/mods/mod_fs.cpp +++ b/src/pc/mods/mod_fs.cpp @@ -26,12 +26,12 @@ static std::vector 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 };