Add single-lua-file mods to mod cache

This commit is contained in:
MysterD 2023-04-11 20:07:09 -07:00
parent de9e5f8550
commit 0e7bbd2da6

View file

@ -517,13 +517,11 @@ bool mod_load(struct Mods* mods, char* basePath, char* modName) {
// print // print
LOG_INFO(" %s", mod->name); LOG_INFO(" %s", mod->name);
if (isDirectory) {
for (int i = 0; i < mod->fileCount; i++) { for (int i = 0; i < mod->fileCount; i++) {
struct ModFile* file = &mod->files[i]; struct ModFile* file = &mod->files[i];
mod_cache_add(mod, file, true); mod_cache_add(mod, file, true);
LOG_INFO(" - %s", file->relativePath); LOG_INFO(" - %s", file->relativePath);
} }
}
return true; return true;
} }