Use game install directory instead of current path.

This commit is contained in:
Dario 2024-12-18 16:59:43 -03:00
parent 6be28dc8b9
commit 9e588326ea

View file

@ -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;