mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
[mod] Check for files in mod dir at the end.
This commit is contained in:
parent
fa51a58111
commit
3096e42954
1 changed files with 4 additions and 0 deletions
|
|
@ -1401,6 +1401,10 @@ FF D7 ; call edi
|
|||
}
|
||||
auto p = find_file_in_paks(fn, "res3.pak", "res2.pak", "res0.pak");
|
||||
if (!fs::exists(p)) {
|
||||
auto dst = get_mod_dir() / p.filename();
|
||||
if (fs::exists(dst)) {
|
||||
return dst;
|
||||
}
|
||||
throw SW_RUNTIME_ERROR("Cannot find file in archives: "s + fn.string());
|
||||
}
|
||||
auto dst = get_mod_dir() / p.filename();
|
||||
|
|
|
|||
Loading…
Reference in a new issue