Update renderConfig.cpp

test-headless
ink-soul 2024-04-30 18:09:07 +08:00
parent 702098c8d0
commit ab5356bec6
1 changed files with 8 additions and 1 deletions

View File

@ -149,7 +149,14 @@ std::string PlumageConfig::PlumageConfiguration::setFilePathFromToml(toml::value
{
std::filesystem::path assetPath = getAssetPath();
assetPath += filesystemConfigFilePath;
return assetPath.generic_string();
if (std::filesystem::exists(assetPath))
{
return assetPath.generic_string();
}
else
{
}
}
}