Merge pull request #8226 from omkelderman/stable-install-path-from-env-var

Add ability to set stable path for tourney client via environment variable
This commit is contained in:
Dean Herbert 2020-03-12 19:48:48 +09:00 committed by GitHub
commit 9e52fbdd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -163,12 +163,7 @@ static bool checkExists(string p)
{
try
{
stableInstallPath = "G:\\My Drive\\Main\\osu!tourney";
if (checkExists(stableInstallPath))
return stableInstallPath;
stableInstallPath = "G:\\My Drive\\Main\\osu!mappool";
stableInstallPath = Environment.GetEnvironmentVariable("OSU_STABLE_PATH");
if (checkExists(stableInstallPath))
return stableInstallPath;