Skip to content

Commit

Permalink
Fix Issue#1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kláben Szabolcs Bence (Tudi20) committed Oct 22, 2018
1 parent 292d3d5 commit fe60d0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Universal THCRAP Launcher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ private void Form1_Load(object sender, EventArgs e)
jsFiles[i] = jsFiles[i].Replace(Directory.GetCurrentDirectory() + "\\", "");
}

for (int i = 0; i < jsFiles.Count; i++)
if (jsFiles[i] == "games.js" || jsFiles[i] == "config.js")
jsFiles.Remove(jsFiles[i]);
if (jsFiles.Contains("games.js"))
jsFiles.Remove("games.js");

if (jsFiles.Contains("config.js"))
jsFiles.Remove("config.js");

if (jsFiles.Count == 0) ErrorAndExit(msg_Error3);

Expand Down

0 comments on commit fe60d0d

Please sign in to comment.