Load MPQ file overrides without StormLib
Also logs the overrides in verbose mode.
This commit is contained in:
parent
5d53910127
commit
a97ffd1640
7 changed files with 57 additions and 64 deletions
|
|
@ -65,7 +65,7 @@ HANDLE LoadMPQ(const std::vector<std::string> &paths, const char *mpqName)
|
|||
mpqAbsPath = path + mpqName;
|
||||
if (SFileOpenArchive(mpqAbsPath.c_str(), 0, MPQ_OPEN_READ_ONLY, &archive)) {
|
||||
LogVerbose(" Found: {} in {}", mpqName, path);
|
||||
SFileSetBasePath(path);
|
||||
paths::SetMpqDir(path);
|
||||
return archive;
|
||||
}
|
||||
if (SErrGetLastError() != STORM_ERROR_FILE_NOT_FOUND) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue