Skip to content

Commit

Permalink
Merge pull request #22 from pieckenst/pwa
Browse files Browse the repository at this point in the history
Pwa
  • Loading branch information
pieckenst authored Oct 13, 2022
2 parents e0d001f + 6536d1a commit 95414f0
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 24 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/handlerlaunch/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion handlerlaunch/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"handlerlaunch": {
"commandName": "Project",
"commandLineArgs": "?spellbornhandle=yes:?gamepath=D:%5CGames%5CSpellborn"
"commandLineArgs": "?spellbornhandle=yes?:gamepath=\"D:%5CGames%5CSpellborn\""
}
}
}
58 changes: 35 additions & 23 deletions handlerlaunch/SupportObjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,33 +200,24 @@ public class spellbornsupporter
private bool enableLaunch;

private static readonly ILog _log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

public void startupRoutine(string[] args)
public string dogamepathreturn(string[] args)
{
#if DEBUG
Console.WriteLine(args[0]);
#else
Console.WriteLine("");
#endif
try
{
string gamepathns = Program.TextFollowing(args[0], ":?gamepath=");
string thirdsanitationstep = "";
try {
Console.WriteLine(args[0]);
string gamepathns = Program.TextFollowing(args[0].ToString(), "gamepath=");
Console.WriteLine(gamepathns);
string gamepathcst = "";
string firstsanstep = "";
string secsanitationstep = "";
string thirdsanitationstep = "";

if (gamepathns.Contains(":?"))
gamepathcst = gamepathns.Split(":?")[0];
if (gamepathcst.Contains("%20")) { firstsanstep = gamepathcst.Replace("%20", ""); Console.WriteLine(firstsanstep); } else { firstsanstep = gamepathcst; }
if (gamepathcst.Contains("%22")) { secsanitationstep = firstsanstep.Replace("%22", ""); Console.WriteLine(secsanitationstep); } else { secsanitationstep = gamepathcst; }
if (gamepathcst.Contains("%5C")) { thirdsanitationstep = secsanitationstep.Replace("%5C", "\\"); Console.WriteLine(thirdsanitationstep); }
passoverfromweb = thirdsanitationstep;
#if DEBUG
Console.WriteLine(passoverfromweb);

#else
Console.WriteLine("");
#endif
else { gamepathcst= gamepathns ;}
if (gamepathcst.Contains("%22")) { secsanitationstep = gamepathcst.Replace("%22", ""); } else { secsanitationstep = gamepathcst; }
if (gamepathcst.Contains("%5C")) { thirdsanitationstep = secsanitationstep.Replace("%5C", "/"); }
if (thirdsanitationstep == null) {
thirdsanitationstep = "D:\\Games\\Spellborn";
}
}
catch (Exception e)
{
Expand All @@ -236,8 +227,29 @@ public void startupRoutine(string[] args)
Console.WriteLine(e.StackTrace);
_log.Error(e.Message);
Console.ReadLine();
passoverfromweb= "D:\\Games\\Spellborn";
thirdsanitationstep = "D:\\Games\\Spellborn";
}
return thirdsanitationstep;
}
public void startupRoutine(string[] args)
{
#if DEBUG
Console.WriteLine(args[0]);
#else
Console.WriteLine("");
#endif
string thirdsanitationstep = dogamepathreturn(args);


passoverfromweb = thirdsanitationstep;
#if DEBUG
Console.WriteLine(passoverfromweb);

#else
Console.WriteLine("");
#endif


bool folderExists = Directory.Exists(passoverfromweb);
try {
if (!folderExists)
Expand Down
Binary file modified handlerlaunch/bin/Debug/net6.0-windows/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/bin/Debug/net6.0-windows/WMconsole.pdb
Binary file not shown.
Binary file modified handlerlaunch/bin/Release/net6.0-windows/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/bin/Release/net6.0-windows/WMconsole.pdb
Binary file not shown.
Binary file modified handlerlaunch/obj/Debug/net6.0-windows/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/obj/Debug/net6.0-windows/WMconsole.pdb
Binary file not shown.
Binary file not shown.
Binary file modified handlerlaunch/obj/Debug/net6.0-windows/ref/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/obj/Debug/net6.0-windows/refint/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/obj/Release/net6.0-windows/WMconsole.dll
Binary file not shown.
Binary file modified handlerlaunch/obj/Release/net6.0-windows/WMconsole.pdb
Binary file not shown.
Binary file not shown.

0 comments on commit 95414f0

Please sign in to comment.