{LYN-4230} Fixed loading *.pak files in Release builds (#1127)
* {LYN-4230} Fixed loading *.pak files in Release builds
* Helios - Release mode should load all *.pak files
* Tests: made a separate installation folder with a reduced "engine.pak" and a full "game.pak" which loads in release
* added unit test to regress the bug fix
This commit is contained in:
@@ -1681,13 +1681,11 @@ namespace AZ::IO
|
||||
AZStd::vector<AZStd::string> files;
|
||||
do
|
||||
{
|
||||
if (AZStd::wildcard_match(pWildcardIn, fileIterator.m_filename))
|
||||
{
|
||||
AZStd::string foundFilename{ fileIterator.m_filename };
|
||||
AZStd::to_lower(foundFilename.begin(), foundFilename.end());
|
||||
files.emplace_back(AZStd::move(foundFilename));
|
||||
}
|
||||
} while (fileIterator = FindNext(fileIterator));
|
||||
AZStd::string foundFilename{ fileIterator.m_filename };
|
||||
AZStd::to_lower(foundFilename.begin(), foundFilename.end());
|
||||
files.emplace_back(AZStd::move(foundFilename));
|
||||
}
|
||||
while (fileIterator = FindNext(fileIterator));
|
||||
|
||||
// Open files in alphabet order.
|
||||
AZStd::sort(files.begin(), files.end());
|
||||
|
||||
Reference in New Issue
Block a user