Skip to content

Commit

Permalink
Proper fix for AppPath
Browse files Browse the repository at this point in the history
  • Loading branch information
RupertAvery committed Dec 14, 2020
1 parent f739143 commit c9fc396
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PSXPackager/ApplicationInfo.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
namespace PSXPackager
using System;
using System.IO;

namespace PSXPackager
{
public static class ApplicationInfo
{
public static string AppPath { get; private set; }

static ApplicationInfo()
{
// Not working in WSL/Mono
//string path = System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Replace("file:\\\\\\", "").Replace("file:///", "");
//AppPath = System.IO.Path.GetDirectoryName(path);
AppPath = ".";
AppPath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory);
}

}
}

0 comments on commit c9fc396

Please sign in to comment.