updated blocked mods with empty hash
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
02264f67f3
commit
a49851cb40
@ -334,6 +334,13 @@ bool BlockedModsDialog::checkValidPath(QString path)
|
|||||||
|
|
||||||
for (auto& mod : m_mods) {
|
for (auto& mod : m_mods) {
|
||||||
if (compare(filename, mod.name)) {
|
if (compare(filename, mod.name)) {
|
||||||
|
// if the mod is not yet matched and doesn't have a hash then
|
||||||
|
// just match it with the file that has the exact same name
|
||||||
|
if (!mod.matched && mod.hash.isEmpty()) {
|
||||||
|
mod.matched = true;
|
||||||
|
mod.localPath = path;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
qDebug() << "[Blocked Mods Dialog] Name match found:" << mod.name << "| From path:" << path;
|
qDebug() << "[Blocked Mods Dialog] Name match found:" << mod.name << "| From path:" << path;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user