let luac files actually run
This commit is contained in:
parent
7e06eb37fd
commit
216a6db872
|
@ -275,7 +275,7 @@ void smlua_init(void) {
|
||||||
gPcDebug.lastModRun = gLuaActiveMod;
|
gPcDebug.lastModRun = gLuaActiveMod;
|
||||||
for (int j = 0; j < mod->fileCount; j++) {
|
for (int j = 0; j < mod->fileCount; j++) {
|
||||||
struct ModFile* file = &mod->files[j];
|
struct ModFile* file = &mod->files[j];
|
||||||
if (!str_ends_with(file->relativePath, ".lua")) {
|
if (!(str_ends_with(file->relativePath, ".lua") || str_ends_with(file->relativePath, ".luac"))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
smlua_load_script(mod, file, i);
|
smlua_load_script(mod, file, i);
|
||||||
|
|
Loading…
Reference in New Issue