Skip to content

Commit

Permalink
patched a security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitl committed Nov 17, 2020
1 parent 4de9a4a commit 595d018
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
36 changes: 32 additions & 4 deletions GENESYSLauncher/GENESYSLauncher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ private static void Main(string[] args)
{
if (Launcher.CreateGame(Launcher.GameType.HL2S).ValidateGamePath())
{
Launcher.LaunchGame(Launcher.GameType.HL2S);
if (!Launcher.IsSteamAppInstalled(243730) || !Launcher.IsSteamAppInstalled(243750) || !Launcher.IsSteamAppInstalled(220))
{
MessageBox.Show("You must own and install a copy of Half-Life 2 or the Source SDK 2013 Base Singleplayer or Multiplayer in order to run " + Launcher.CreateGame(Launcher.GameType.HL2S).Name, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Launcher.LaunchGame(Launcher.GameType.HL2S);
}
}
else
{
Expand All @@ -51,7 +58,14 @@ private static void Main(string[] args)
{
if (Launcher.CreateGame(Launcher.GameType.CyberDiver_v1_00).ValidateGamePath())
{
Launcher.LaunchGame(Launcher.GameType.CyberDiver_v1_00);
if (!Launcher.IsSteamAppInstalled(243730) || !Launcher.IsSteamAppInstalled(243750) || (!Launcher.IsSteamAppInstalled(220) && !Launcher.IsSteamAppInstalled(380) && !Launcher.IsSteamAppInstalled(420)))
{
MessageBox.Show("You must own and install a copy of Half-Life 2, Half-Life 2 Episode One, and Half-Life 2 Episode Two, or the Source SDK 2013 Base Singleplayer or Multiplayer in order to run " + Launcher.CreateGame(Launcher.GameType.CyberDiver_v1_00).Name, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Launcher.LaunchGame(Launcher.GameType.CyberDiver_v1_00);
}
}
else
{
Expand All @@ -64,7 +78,14 @@ private static void Main(string[] args)
{
if (Launcher.CreateGame(Launcher.GameType.CyberDiver_v1_20j).ValidateGamePath())
{
Launcher.LaunchGame(Launcher.GameType.CyberDiver_v1_20j);
if (!Launcher.IsSteamAppInstalled(243730) || !Launcher.IsSteamAppInstalled(243750) || (!Launcher.IsSteamAppInstalled(220) && !Launcher.IsSteamAppInstalled(380) && !Launcher.IsSteamAppInstalled(420)))
{
MessageBox.Show("You must own and install a copy of Half-Life 2, Half-Life 2 Episode One, and Half-Life 2 Episode Two, or the Source SDK 2013 Base Singleplayer or Multiplayer in order to run " + Launcher.CreateGame(Launcher.GameType.CyberDiver_v1_20j).Name, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Launcher.LaunchGame(Launcher.GameType.CyberDiver_v1_20j);
}
}
else
{
Expand All @@ -77,7 +98,14 @@ private static void Main(string[] args)
{
if (Launcher.CreateGame(Launcher.GameType.L4DS).ValidateGamePath())
{
Launcher.LaunchGame(Launcher.GameType.L4DS);
if (!Launcher.IsSteamAppInstalled(550))
{
MessageBox.Show("You must own and install a copy of Left 4 Dead 2 in order to run " + Launcher.CreateGame(Launcher.GameType.L4DS).Name, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
Launcher.LaunchGame(Launcher.GameType.L4DS);
}
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions GENESYSLauncher/GENESYSLauncher/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v2.0.1:
- Fixed a security issue involving the command line arguments.
v2.0:
- Redid the settings system to use Visual Studio's setting system.
- Rewrote the code behind the scenes for better efficency.
Expand Down

0 comments on commit 595d018

Please sign in to comment.