Skip to content

Commit f9d3f4f

Browse files
ok but like maybe
1 parent b74cfec commit f9d3f4f

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleName</key>
6-
<string>SS14L</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>Space Station 14 Launcher</string>
9-
<key>CFBundleExecutable</key>
10-
<string>SS14</string>
11-
<!--
12-
Just a note about this icon.
13-
MacOS seems REALLY iffy about this and even when the file is correct,
14-
it can take forever before it decides to actually update it and display it.
15-
TL;DR Apple is stupid.
16-
-->
17-
<key>CFBundleIconFile</key>
18-
<string>ss14</string>
5+
<key>CFBundleName</key>
6+
<string>SS14L</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Space Station 14 Launcher</string>
9+
<key>CFBundleExecutable</key>
10+
<string>SS14</string>
11+
<key>CFBundleIconFile</key>
12+
<string>ss14</string>
1913
<key>CFBundleIdentifier</key>
2014
<string>com.spacestation14.launcher</string>
21-
<key>CFBundleURLTypes</key>
22-
<array>
23-
<dict>
24-
<key>CFBundleURLName</key>
25-
<string>com.spacestation14.launcher</string>
26-
<key>CFBundleURLSchemes</key>
27-
<array>
28-
<string>ss14</string>
29-
<string>ss14s</string>
30-
</array>
31-
</dict>
32-
</array>
15+
<key>CFBundleURLTypes</key>
16+
<array>
17+
<dict>
18+
<key>CFBundleURLName</key>
19+
<string>com.spacestation14.launcher</string>
20+
<key>CFBundleURLSchemes</key>
21+
<array>
22+
<string>ss14</string>
23+
<string>ss14s</string>
24+
</array>
25+
</dict>
26+
</array>
27+
<key>CFBundleDocumentTypes</key>
28+
<array>
29+
<dict>
30+
<key>CFBundleTypeExtensions</key>
31+
<array>
32+
<string>rtreplay</string>
33+
<string>rtbundle</string>
34+
</array>
35+
<key>CFBundleTypeIconFile</key>
36+
<string>ss14.icns</string>
37+
<key>LSHandlerRank</key>
38+
<string>Owner</string>
39+
<key>CFBundleTypeName</key>
40+
<string>Robust Toolbox Bundle File</string>
41+
<key>CFBundleTypeRole</key>
42+
<string>Viewer</string>
43+
</dict>
44+
</array>
3345
</dict>
3446
</plist>

SS14.Launcher.Bootstrap/Program.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using System.IO;
44
using Microsoft.Win32;
55
using System.Linq;
6-
using System.Security;
7-
using System.Security.Principal;
86

97
namespace SS14.Launcher.Bootstrap
108
{

SS14.Launcher/Program.cs

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ internal static class Program
4141
[STAThread]
4242
public static void Main(string[] args)
4343
{
44+
UrlOpenedEventArgs? urlArgs = null;
4445
#if DEBUG
4546
Console.OutputEncoding = Encoding.UTF8;
4647
#endif
@@ -51,6 +52,11 @@ public static void Main(string[] args)
5152
var msgr = new LauncherMessaging();
5253
Locator.CurrentMutable.RegisterConstant(msgr);
5354

55+
if (urlArgs != null)
56+
{
57+
args = urlArgs.Urls.ToArray();
58+
}
59+
5460
// Parse arguments as early as possible for launcher messaging reasons.
5561
string[] commands = { LauncherCommands.PingCommand };
5662
var commandSendAnyway = false;

0 commit comments

Comments
 (0)