From 9e588326ea8be70a4613a094776547ff3f982d0c Mon Sep 17 00:00:00 2001 From: Dario Date: Wed, 18 Dec 2024 16:59:43 -0300 Subject: [PATCH] Use game install directory instead of current path. --- UnleashedRecomp/user/paths.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnleashedRecomp/user/paths.h b/UnleashedRecomp/user/paths.h index f68c7eac..c6bf305b 100644 --- a/UnleashedRecomp/user/paths.h +++ b/UnleashedRecomp/user/paths.h @@ -8,13 +8,13 @@ inline std::filesystem::path GetGamePath() { - return std::filesystem::current_path(); + return GAME_INSTALL_DIRECTORY; } inline std::filesystem::path GetUserPath() { - if (std::filesystem::exists("portable.txt")) - return std::filesystem::current_path(); + if (std::filesystem::exists(GAME_INSTALL_DIRECTORY "portable.txt")) + return GAME_INSTALL_DIRECTORY; std::filesystem::path userPath;