Skip to content

Commit

Permalink
Removed system reflection due to .NET 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pnvnd committed Apr 17, 2021
1 parent 0b6d97b commit bafb720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal class Program
private static void Main(string[] args)
{
Console.WriteLine("TOD1RSCE sceWork v0.9 - Cross-Platform");
string exeDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
string exeDir = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
exeDir = new Uri(exeDir).LocalPath;

if (File.Exists(Path.Combine(exeDir, "jpcodes.txt")))
Expand Down

0 comments on commit bafb720

Please sign in to comment.