From ab5356bec6139c47986a9491d1135cbe8bd105ea Mon Sep 17 00:00:00 2001 From: ink-soul Date: Tue, 30 Apr 2024 18:09:07 +0800 Subject: [PATCH] Update renderConfig.cpp --- base/renderConfig.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/base/renderConfig.cpp b/base/renderConfig.cpp index a523462..f643554 100644 --- a/base/renderConfig.cpp +++ b/base/renderConfig.cpp @@ -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 + { + + } } }