mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Do not read .bak files as quest db.
This commit is contained in:
parent
c413781530
commit
a8a8a812c0
1 changed files with 3 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ struct DemoApp {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto q = fn.path().stem().wstring();
|
auto q = fn.path().stem().wstring();
|
||||||
|
while (q.find('.') != -1) {
|
||||||
|
q = fs::path{q}.stem();
|
||||||
|
}
|
||||||
std::transform(q.begin(), q.end(), q.begin(), ::towlower);
|
std::transform(q.begin(), q.end(), q.begin(), ::towlower);
|
||||||
auto tofind = L"quest_"s;
|
auto tofind = L"quest_"s;
|
||||||
if (!q.starts_with(tofind)) {
|
if (!q.starts_with(tofind)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue