Skip to content

Commit

Permalink
Cleo scripts listing with modloader (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC authored Jun 24, 2024
1 parent 65eca0c commit e6dc8fc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/CScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,11 +1008,21 @@ namespace CLEO
}
};

auto searchPattern = Filepath_Cleo + "\\*.*";
auto searchPattern = Filepath_Cleo + "\\*" + cs_ext;
auto list = CLEO_ListDirectory(nullptr, searchPattern.c_str(), false, true);
processFileList(list);
CLEO_StringListFree(list);

searchPattern = Filepath_Cleo + "\\*" + cs3_ext;
list = CLEO_ListDirectory(nullptr, searchPattern.c_str(), false, true);
processFileList(list);
CLEO_StringListFree(list);

searchPattern = Filepath_Cleo + "\\*" + cs4_ext;
list = CLEO_ListDirectory(nullptr, searchPattern.c_str(), false, true);
processFileList(list);
CLEO_StringListFree(list);

if (!found.empty())
{
TRACE("Starting CLEO scripts");
Expand Down

0 comments on commit e6dc8fc

Please sign in to comment.