Skip to content

Commit

Permalink
fix directorySearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyroonis committed Nov 5, 2023
1 parent 0dd2c41 commit 61a7340
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Assets/GothicVR/Scripts/Manager/Settings/SettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ private static string GetRootPath()

public static bool CheckIfGothic1InstallationExists()
{
if (Directory.Exists(GameSettings.GothicIPath))
var g1DataPath = Path.GetFullPath(Path.Join(GameSettings.GothicIPath, "Data"));
var g1_WorkPath = Path.GetFullPath(Path.Join(GameSettings.GothicIPath, "_work"));
if (g1DataPath != null && g1_WorkPath != null)
{
return Directory.Exists($"{GameSettings.GothicIPath}\\Data");
return true;
}
return false;
}
Expand Down

0 comments on commit 61a7340

Please sign in to comment.