Skip to content

Commit

Permalink
Merge pull request #63 from muttleyxd/fix-proton-cfg-path
Browse files Browse the repository at this point in the history
arma3client: fix proton cfg path
  • Loading branch information
muttleyxd authored Mar 20, 2020
2 parents 5992c07 + 26801df commit 8fae161
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/arma3-unix-launcher-library/arma3client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,13 @@ namespace ARMA3

std::filesystem::path Client::GetCfgPath()
{
return std::filesystem::path(Definitions::home_directory)
/ Definitions::local_share_prefix
/ Definitions::bohemia_interactive_prefix
/ Definitions::game_config_path;
if (IsProton())
return GetPath() / Definitions::proton_config_relative_path;
else
return std::filesystem::path(Definitions::home_directory)
/ Definitions::local_share_prefix
/ Definitions::bohemia_interactive_prefix
/ Definitions::game_config_path;
}

char Client::GetFakeDriveLetter()
Expand Down
2 changes: 2 additions & 0 deletions src/arma3-unix-launcher-library/arma3client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ namespace ARMA3::Definitions
static constexpr char const *bohemia_interactive_prefix = "com.vpltd.Arma3";
static constexpr char const *game_config_path = "GameDocuments/Arma 3/Arma3.cfg";
#endif

static constexpr char const *proton_config_relative_path = "../../compatdata/107410/pfx/drive_c/users/steamuser/My Documents/Arma 3/Arma3.cfg";
}

namespace ARMA3
Expand Down

0 comments on commit 8fae161

Please sign in to comment.