mirror of
https://github.com/psforever/GameLauncher.git
synced 2026-01-19 18:24:45 +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
|
|
@ -126,8 +126,11 @@ namespace PSLauncher
|
|||
pathsToCheck.Add(psFolder);
|
||||
|
||||
// worth a shot! (for windows XP or old installs)
|
||||
psFolder = Path.Combine(ProgramFilesx86(), "Sony\\PlanetSide");
|
||||
pathsToCheck.Add(psFolder);
|
||||
string programFiles = ProgramFilesx86();
|
||||
if(programFiles != null) {
|
||||
psFolder = Path.Combine(programFiles, "Sony\\PlanetSide");
|
||||
pathsToCheck.Add(psFolder);
|
||||
}
|
||||
|
||||
int i = 1;
|
||||
foreach(var path in pathsToCheck)
|
||||
|
|
|
|||
Loading…
Reference in a new issue