1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Move all .NET scripts to their own subfolder

This commit is contained in:
WerWolv 2023-07-15 14:50:39 +02:00
parent 2fea1975c2
commit d977f1f988

View File

@ -198,14 +198,14 @@ namespace hex::script::loader {
continue;
for (const auto &entry : std::fs::directory_iterator(directoryPath)) {
if (!entry.is_regular_file())
if (!entry.is_directory())
continue;
const auto &scriptPath = entry.path();
const auto &scriptPath = entry.path() / "Main.dll";
if (!std::fs::exists(scriptPath))
continue;
this->addScript(scriptPath.stem().string(), [this, scriptPath] {
this->addScript(entry.path().stem().string(), [this, scriptPath] {
this->m_loadAssembly(scriptPath);
});
}