Skip to content

Commit 40fd5fd

Browse files
committed
Fix #81
#81
1 parent 0b0bbb3 commit 40fd5fd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Universal THCRAP Launcher/MainForm.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ public MainForm()
3838

3939
#region Global variables
4040

41-
private const string CONFIG_FILE = @"..\config\utl_config.json";
42-
private const string FAVORITE_FILE = @"..\config\favorite.json";
43-
private const string GAMES_FILE = @"..\config\games.js";
41+
private const string CONFIG_FOLDER = @"..\config\";
42+
private const string CONFIG_FILE = CONFIG_FOLDER + @"utl_config.json";
43+
private const string FAVORITE_FILE = CONFIG_FOLDER + @"favorite.json";
44+
private const string GAMES_FILE = CONFIG_FOLDER + @"games.js";
4445

4546
private readonly Image _custom = new Bitmap(Resources.Custom);
4647
private readonly Image _game = new Bitmap(Resources.Game);
@@ -417,7 +418,7 @@ private void openConfigureTS_Click(object sender, EventArgs e)
417418

418419
private void openSelectedPatchConfigurationTS_Click(object sender, EventArgs e)
419420
{
420-
string path = Directory.GetCurrentDirectory() + @"/" +
421+
string path = Directory.GetCurrentDirectory() + @"\" + CONFIG_FOLDER +
421422
patchListBox.SelectedItem.ToString().Replace(" ★", "");
422423
if (Configuration1.HidePatchExtension)
423424
{

0 commit comments

Comments
 (0)