This commit is contained in:
Fire Cube 2025-05-24 12:02:15 +02:00
parent b6bdac3161
commit 6fcefc95e7

View File

@ -28,7 +28,6 @@ public:
} }
static bool IsSystemModule(const std::filesystem::path& path) { static bool IsSystemModule(const std::filesystem::path& path) {
const auto sys_modules_path = Common::FS::GetUserPath(Common::FS::PathType::SysModuleDir); const auto sys_modules_path = Common::FS::GetUserPath(Common::FS::PathType::SysModuleDir);
const auto abs_path = std::filesystem::absolute(path).lexically_normal(); const auto abs_path = std::filesystem::absolute(path).lexically_normal();
@ -66,7 +65,7 @@ public:
bool is_lle = false; bool is_lle = false;
auto it = std::find_if(modules.begin(), modules.end(), auto it = std::find_if(modules.begin(), modules.end(),
[&name, is_sys_module, is_lle](const ModuleInfo& entry) { [&name, is_sys_module, is_lle](const ModuleInfo& entry) {
return entry.name == name && entry.is_lle == false; return entry.name == name && !entry.is_lle;
}); });
if (it == modules.end()) { if (it == modules.end()) {