Skip to content

Commit 9b2f36e

Browse files
committed
made file swapper paths cleaner
1 parent 24371e2 commit 9b2f36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPUPrefSwitcher/FileSwapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class FileSwapper
4444
*
4545
* Writing a function to abstract each part of this path would cause as many problems as it solves for now
4646
*/
47-
public static readonly string SwapPathFolder = Program.SavedDataPath + "SettingsBank";
47+
public static readonly string SwapPathFolder = Path.Combine(Program.SavedDataPath, "SettingsBank/");
4848
public static readonly string OnBatteryPrefix = "OnBattery_";
4949
public static readonly string PluggedInPrefix = "PluggedIn_";
5050

@@ -56,7 +56,7 @@ public string SettingsBankFolderName
5656
}
5757
public string SettingsBankFolderPath
5858
{
59-
get => SwapPathFolder + "\\" + SettingsBankFolderName;
59+
get => Path.Combine(SwapPathFolder, SettingsBankFolderName);
6060
}
6161

6262
public PreferencesXML ForPreferencesXML { get; init; }

0 commit comments

Comments
 (0)