mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Use game install directory instead of current path.
This commit is contained in:
parent
6be28dc8b9
commit
9e588326ea
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue