Add env variable to set app path.

This commit is contained in:
Mr_Goldberg
2020-01-13 13:47:14 -05:00
parent 106fb03bb0
commit 71e265f52b
2 changed files with 10 additions and 7 deletions

View File

@ -193,6 +193,15 @@ std::string get_lib_path() {
std::string get_full_program_path()
{
std::string env_program_path = get_env_variable("SteamAppPath");
if (env_program_path.length()) {
if (env_program_path.back() != PATH_SEPARATOR[0]) {
env_program_path = env_program_path.append(PATH_SEPARATOR);
}
return env_program_path;
}
std::string program_path;
#if defined(STEAM_WIN32)
char DllPath[MAX_PATH] = {0};