diff --git a/include/settings.hxx b/include/settings.hxx index 1cce7a78..fe553f6f 100644 --- a/include/settings.hxx +++ b/include/settings.hxx @@ -137,6 +137,13 @@ public: { Settings::Set("core_path", (std::filesystem::current_path()).string()); } + + if (!std::filesystem::exists(Settings::Get("core_path"))) + { + printf("Failed to find initialize core info\n"); + return; + } + std::filesystem::directory_iterator it(Settings::Get("core_path")); std::filesystem::directory_iterator end; while (it != end)