fix: Build issues
This commit is contained in:
parent
8531a67519
commit
d7845ec690
@ -279,8 +279,8 @@ namespace hex::script::loader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DotNetLoader::clearScripts() {
|
void DotNetLoader::clearScripts() {
|
||||||
std::erase_if(getScripts(), [](const Script *script) {
|
std::erase_if(getScripts(), [](const Script &script) {
|
||||||
return !script->background;
|
return !script.background;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ namespace {
|
|||||||
void loadScript(std::vector<const Script*> &scripts, auto &loader) {
|
void loadScript(std::vector<const Script*> &scripts, auto &loader) {
|
||||||
loader.loadAll();
|
loader.loadAll();
|
||||||
|
|
||||||
for (auto &script : loader.getScripts())
|
for (auto &script : std::as_const(loader).getScripts())
|
||||||
scripts.emplace_back(&script);
|
scripts.emplace_back(&script);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &script : scripts) {
|
for (const auto &script : scripts) {
|
||||||
const auto &[name, background, entryPoint, loader] = *script;
|
const auto &[name, path, background, entryPoint, loader] = *script;
|
||||||
if (background)
|
if (background)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user