Skip to content

Commit

Permalink
Fixed: Backup logic for getting launcher path for Portable Mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Feb 25, 2022
1 parent 6f84ec3 commit b6cac0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Reloaded.Mod.Loader.IO/Config/LoaderConfig.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.Json.Serialization;
Expand Down Expand Up @@ -263,7 +264,7 @@ private string GetLauncherFolder()
// Get launcher path.
var launcherPath = LauncherPath;
if (string.IsNullOrEmpty(LauncherPath))
launcherPath = Paths.CurrentProgramFolder;
launcherPath = Path.Combine(Paths.CurrentProgramFolder, "Dummy.txt");

// Workaround for when non-launcher folder is used.
// e.g. When using loader.
Expand Down

0 comments on commit b6cac0c

Please sign in to comment.