Skip to content

Commit

Permalink
Fix no Mods directory crashing game
Browse files Browse the repository at this point in the history
  • Loading branch information
Spartan322 committed Apr 5, 2017
1 parent a0e9a46 commit 1c5cdc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pathfinder/Pathfinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public static void LoadMods()
string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
char separator = Path.DirectorySeparatorChar;

if (!Directory.Exists(path + separator + "Mods"))
Directory.CreateDirectory(path + separator + "Mods");

foreach (string dll in Directory.GetFiles(path + separator + "Mods" + separator, "*.dll"))
{
try
Expand Down

0 comments on commit 1c5cdc7

Please sign in to comment.