mirror of
https://github.com/psforever/GameLauncher.git
synced 2026-07-15 16:34:38 +00:00
prevent exception when ProgramFiles env is not set
This probably only occurs in non-Windows environments (Wine).
This commit is contained in:
parent
a915df802e
commit
4461503856
1 changed files with 5 additions and 2 deletions
|
|
@ -126,8 +126,11 @@ namespace PSLauncher
|
||||||
pathsToCheck.Add(psFolder);
|
pathsToCheck.Add(psFolder);
|
||||||
|
|
||||||
// worth a shot! (for windows XP or old installs)
|
// worth a shot! (for windows XP or old installs)
|
||||||
psFolder = Path.Combine(ProgramFilesx86(), "Sony\\PlanetSide");
|
string programFiles = ProgramFilesx86();
|
||||||
pathsToCheck.Add(psFolder);
|
if(programFiles != null) {
|
||||||
|
psFolder = Path.Combine(programFiles, "Sony\\PlanetSide");
|
||||||
|
pathsToCheck.Add(psFolder);
|
||||||
|
}
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
foreach(var path in pathsToCheck)
|
foreach(var path in pathsToCheck)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue