Skip to content

Commit

Permalink
fixed an issue causing a crash when trying to read desktop_neptune
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed May 8, 2024
1 parent 72b621f commit 88b213b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HandheldCompanion/Platforms/Steam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public bool HasDesktopProfileApplied()
if (!File.Exists(configPath))
return false;

// check if file is being used
// todo: improve me
if (FileUtils.IsFileUsed(configPath))
return true;

string configText = File.ReadAllText(configPath);
string fileText = Encoding.UTF8.GetString(Resources.empty_neptune, 0, Resources.empty_neptune.Length);

Expand Down

0 comments on commit 88b213b

Please sign in to comment.