mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-18 19:22:41 +00:00
Add single-lua-file mods to mod cache
This commit is contained in:
parent
de9e5f8550
commit
0e7bbd2da6
1 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue