fix: more working directory logic bugs
Some checks failed
Build (Linux, x86-64) / build-linux-amalgamate (push) Has been cancelled
Build (Linux, x86-64) / build-linux-full (push) Has been cancelled
Format Check / clang-format (push) Has been cancelled
Release Nightly (Linux, x86-64) / release-linux (push) Has been cancelled

This commit is contained in:
Tropical 2026-04-11 10:11:37 -07:00
parent f7e555ea6b
commit 397ab0a6e5
2 changed files with 3 additions and 5 deletions

View file

@ -197,11 +197,9 @@ bool File::mkdirs() const {
return fs::is_directory(path, error);
}
if (error) {
return false;
}
fs::create_directories(path, error);
return fs::create_directories(path, error);
return error.value() == 0;
}
/*

View file

@ -478,7 +478,7 @@ File Minecraft::getWorkingDirectory(const std::string& applicationName) {
if (!workingDirectory.exists()) {
if (!workingDirectory.mkdirs()) {
Log::info("The working directory could not be created");
Log::info("The working directory could not be created.\n");
assert(0);
}
}