Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Check core_path
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Oct 30, 2023
1 parent 0f36ecf commit eeccaf4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/settings.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eeccaf4

Please sign in to comment.