Added null progress notifier, optimized CResourceStore::BuildFromDirectory a little

This commit is contained in:
Aruki
2017-07-15 22:55:26 -06:00
parent a813c4c61c
commit bfe541a35d
4 changed files with 17 additions and 3 deletions

View File

@@ -303,9 +303,9 @@ bool CResourceStore::BuildFromDirectory(bool ShouldGenerateCacheFile)
for (auto Iter = ResourceList.begin(); Iter != ResourceList.end(); Iter++)
{
TString Path = *Iter;
TString RelPath = FileUtil::MakeRelative(Path, ResDir);
TString RelPath = Path.ChopFront( ResDir.Size() );
if (FileUtil::IsFile(Path) && Path.GetFileExtension() == "rsmeta")
if (FileUtil::IsFile(Path) && Path.EndsWith(".rsmeta"))
{
// Determine resource name
TString DirPath = RelPath.GetFileDirectory();