mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(libc): the process starts in the root directory again
Starting in app0 when the folder exists made the working directory, and with it the tests, depend on the layout next to the executable. The title opens its files by absolute /app0 paths, so the fallback was never used: the route to story mode runs the same without it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ std::optional<std::filesystem::path> ResolveAlias(const std::string& guestPath)
|
||||
struct WorkingDirectory {
|
||||
std::mutex mutex;
|
||||
const std::filesystem::path root = std::filesystem::canonical(std::filesystem::current_path());
|
||||
std::filesystem::path current = std::filesystem::is_directory(root / "app0") ? root / "app0" : root;
|
||||
std::filesystem::path current = root;
|
||||
};
|
||||
WorkingDirectory& Directories() { static WorkingDirectory state; return state; }
|
||||
std::filesystem::path Resolve(WorkingDirectory& state, const char* path) {
|
||||
|
||||
Reference in New Issue
Block a user