Skip to content

Commit

Permalink
Merge pull request #46 from pieckenst/pwa
Browse files Browse the repository at this point in the history
Pwa
  • Loading branch information
pieckenst authored Oct 23, 2022
2 parents 5b38cdd + 3322f1e commit 0b10119
Show file tree
Hide file tree
Showing 62 changed files with 1,050 additions and 17 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/handlerlaunch/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/handlerlaunch/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/handlerlaunch/v17/.suo
Binary file not shown.
20 changes: 19 additions & 1 deletion handlerlaunch/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.IO;
using System.Linq;
using System.Windows;
using Microsoft.Toolkit.Uwp.Notifications;

namespace WMConsole
{
Expand Down Expand Up @@ -37,6 +38,7 @@ public static string ReturnXpacNum(ushort expansionId)
[STAThread]
static void Main(string[] args)
{
Console.Title = "Protocol Handler Process";
Console.WriteLine("Listening.."); //Gets the current location where the file is downloaded
var loc = System.Reflection.Assembly.GetExecutingAssembly().Location;
string locruntconf = loc.Replace(".dll", ".runtimeconfig.json");
Expand All @@ -58,6 +60,9 @@ static void Main(string[] args)
string lib14 = loc.Replace("WMconsole.dll", "ReusableTasks.dll");
string lib15 = loc.Replace("WMconsole.dll", "Serilog.dll");
string lib16 = loc.Replace("WMconsole.dll", "SharedMemory.dll");
string lib17 = loc.Replace("WMconsole.dll", "Microsoft.Toolkit.Uwp.Notifications.dll");
string lib18 = loc.Replace("WMconsole.dll", "Microsoft.Windows.SDK.NET.dll");
string lib19 = loc.Replace("WMconsole.dll", "WinRT.Runtime.dll");
if (!Directory.Exists(@"D:\HandleGame\"))
{
System.IO.Directory.CreateDirectory(@"D:\HandleGame\");
Expand All @@ -84,6 +89,9 @@ static void Main(string[] args)
File.Copy(lib14, @"D:\HandleGame\" + lib14.Split('\\').Last());
File.Copy(lib15, @"D:\HandleGame\" + lib15.Split('\\').Last());
File.Copy(lib16, @"D:\HandleGame\" + lib16.Split('\\').Last());
File.Copy(lib17, @"D:\HandleGame\" + lib17.Split('\\').Last());
File.Copy(lib18, @"D:\HandleGame\" + lib18.Split('\\').Last());
File.Copy(lib19, @"D:\HandleGame\" + lib19.Split('\\').Last());
}
var KeyTest = Registry.CurrentUser.OpenSubKey("Software", true).OpenSubKey("Classes", true);
RegistryKey key = KeyTest.CreateSubKey("HandleWebRequest");
Expand All @@ -98,6 +106,10 @@ static void Main(string[] args)
windower.Show();
Thread.Sleep(10000);
windower.Close();
var donots = new ToastContentBuilder().AddArgument("action", "viewConversation").AddArgument("conversationId", 9813).AddText("Game process has been launched")
.AddText("You may now play the game");
donots.Show();

}
if (args[0].Contains("?spellbornhandle=yes"))
{
Expand All @@ -107,13 +119,19 @@ static void Main(string[] args)
windower.Show();
Thread.Sleep(10000);
windower.Close();
var donots = new ToastContentBuilder().AddArgument("action", "viewConversation").AddArgument("conversationId", 9813).AddText("Game process has been launched")
.AddText("You may now play the game");
donots.Show();
}

}
if (args == null || args.Length == 0)
{
{
Console.WriteLine("Protocol handler has been registered- you may now proceed to https://pieckenst.github.io/WebLaunch-FFXIV/ to launch the game");
var donots = new ToastContentBuilder().AddArgument("action", "viewConversation").AddArgument("conversationId", 9813).AddText("Protocol handler registered")
.AddText("Protocol handler has been registered- you may now proceed to https://pieckenst.github.io/WebLaunch-FFXIV/ to launch the game");
donots.Show();

Console.ReadLine();


Expand Down
Binary file added handlerlaunch/appicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0b10119

Please sign in to comment.