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