Skip to content

Commit e600318

Browse files
committed
Ok now archive file should be ok
1 parent a3bb02d commit e600318

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

include/nbl/system/CAPKResourcesArchive.h

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,13 @@ class CAPKResourcesArchive : public IFileArchive
5555
if (std::filesystem::path(p).extension() == "" && std::filesystem::path(p) != "")
5656
{
5757
std::vector<std::string> recRes;
58-
if (std::string(asset_path) == "")
59-
{
60-
recRes = listAssetsRecursively(std::filesystem::path(p).string().c_str());
61-
}
62-
else
63-
{
64-
recRes = listAssetsRecursively((std::filesystem::path(asset_path) / p).string().c_str());
65-
}
58+
59+
recRes = listAssetsRecursively(std::filesystem::path(p).string().c_str());
6660
res.insert(res.end(), recRes.begin(), recRes.end());
6761
}
6862
else
6963
{
70-
if (std::string(asset_path) == "")
71-
{
72-
res.push_back(p);
73-
}
74-
else
75-
{
76-
res.push_back((std::filesystem::path(asset_path) / p));
77-
}
64+
res.push_back(p);
7865
}
7966
}
8067
res.insert(res.end(), curDirFiles.begin(), curDirFiles.end());

0 commit comments

Comments
 (0)