mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 03:34:52 +01:00
Add env variable to set app path.
This commit is contained in:
parent
106fb03bb0
commit
71e265f52b
2 changed files with 10 additions and 7 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue