Added warning line to check for existing path
This commit is contained in:
parent
eedcd44b8e
commit
c13f06e4a6
|
@ -105,6 +105,12 @@ namespace SHADE
|
|||
std::vector<SHAsset> assets;
|
||||
|
||||
// Get all subfolders/files in this current folder
|
||||
if (!std::filesystem::exists(std::filesystem::path(folder->path)))
|
||||
{
|
||||
SHLOG_WARNING("[Asset Manager] Path to build directory does not exist!: {}", folder->path);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (auto& dirEntry : std::filesystem::directory_iterator(folder->path))
|
||||
{
|
||||
auto path = dirEntry.path();
|
||||
|
|
Loading…
Reference in New Issue