Set gamepath based on fileFromArgs directory

This commit is contained in:
kqnori
2026-07-05 17:25:17 +02:00
committed by GitHub
parent 9702fd26ee
commit 1d3a760acc
+3
View File
@@ -16,6 +16,9 @@ namespace OnlineFixImporter
Varibles.writeOutAllVar();
Functions.checkFiles();
Varibles.gamepath = Directory.GetParent(Varibles.fileFromArgs).FullName;
if (Varibles.fileFromArgs.EndsWith(".exe"))
{
if (Directory.GetFiles(Varibles.gamepath, "OnlineFix.ini", SearchOption.AllDirectories).Length == 0)