Do not read .bak files as quest db.

This commit is contained in:
lzwdgc 2024-02-25 21:14:10 +03:00
parent c413781530
commit a8a8a812c0

View file

@ -122,6 +122,9 @@ struct DemoApp {
continue;
}
auto q = fn.path().stem().wstring();
while (q.find('.') != -1) {
q = fs::path{q}.stem();
}
std::transform(q.begin(), q.end(), q.begin(), ::towlower);
auto tofind = L"quest_"s;
if (!q.starts_with(tofind)) {