mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-12 13:11:42 +00:00
bsatool: Support extracting files with forward slash paths
This commit is contained in:
parent
3be0ee824a
commit
3bf5b150c5
1 changed files with 2 additions and 1 deletions
|
@ -194,7 +194,8 @@ int extract(std::unique_ptr<File>& bsa, Arguments& info)
|
||||||
// Get a stream for the file to extract
|
// Get a stream for the file to extract
|
||||||
for (auto it = bsa->getList().rbegin(); it != bsa->getList().rend(); ++it)
|
for (auto it = bsa->getList().rbegin(); it != bsa->getList().rend(); ++it)
|
||||||
{
|
{
|
||||||
if (Misc::StringUtils::ciEqual(Misc::StringUtils::stringToU8String(it->name()), archivePath))
|
auto streamPath = Misc::StringUtils::stringToU8String(it->name());
|
||||||
|
if (Misc::StringUtils::ciEqual(streamPath, archivePath) || Misc::StringUtils::ciEqual(streamPath, extractPath))
|
||||||
{
|
{
|
||||||
stream = bsa->getFile(&*it);
|
stream = bsa->getFile(&*it);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue