impr: Move all .NET scripts to their own subfolder
This commit is contained in:
parent
2fea1975c2
commit
d977f1f988
@ -198,14 +198,14 @@ namespace hex::script::loader {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (const auto &entry : std::fs::directory_iterator(directoryPath)) {
|
for (const auto &entry : std::fs::directory_iterator(directoryPath)) {
|
||||||
if (!entry.is_regular_file())
|
if (!entry.is_directory())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const auto &scriptPath = entry.path();
|
const auto &scriptPath = entry.path() / "Main.dll";
|
||||||
if (!std::fs::exists(scriptPath))
|
if (!std::fs::exists(scriptPath))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
this->addScript(scriptPath.stem().string(), [this, scriptPath] {
|
this->addScript(entry.path().stem().string(), [this, scriptPath] {
|
||||||
this->m_loadAssembly(scriptPath);
|
this->m_loadAssembly(scriptPath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user