Fix game path formatting and update Console.WriteLine
This commit is contained in:
+5
-5
@@ -1,8 +1,7 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System;
|
||||||
Console.WriteLine(args[0]);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -11,6 +10,7 @@ string gamepath = "";
|
|||||||
string gamename = "";
|
string gamename = "";
|
||||||
string gameexe = "";
|
string gameexe = "";
|
||||||
|
|
||||||
|
Console.WriteLine(args[0]);
|
||||||
string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
|
||||||
|
|
||||||
if (args[0].EndsWith(".exe"))
|
if (args[0].EndsWith(".exe"))
|
||||||
@@ -87,7 +87,7 @@ void unrarfix(string fixfile)
|
|||||||
Console.WriteLine($"Game name: {gamename}");
|
Console.WriteLine($"Game name: {gamename}");
|
||||||
|
|
||||||
|
|
||||||
gamepath = userProfilePath + "/Documents/gry/" + gamename;
|
gamepath = userProfilePath + "/Documents/games/" + gamename;
|
||||||
|
|
||||||
Directory.Move(dirtomove, gamepath);
|
Directory.Move(dirtomove, gamepath);
|
||||||
|
|
||||||
@@ -242,4 +242,4 @@ void ExtractIcon(string exePath, string outputPngPath)
|
|||||||
UseShellExecute = false
|
UseShellExecute = false
|
||||||
});
|
});
|
||||||
process?.WaitForExit();
|
process?.WaitForExit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user