diff --git a/README.md b/README.md
index 392f22b..b1bfc6c 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
[](https://paypal.me/groupload "Donate")
-**GTA V Online - SessionSweeper**
+**GTA V Online and RDR 2 Online - SessionSweeper**
Press *Pause/Break* to disconnect from everyone in your current session and be alone.
Press *Scroll Lock* to toggle lock your current session and stop people from joining.
diff --git a/SessionSweeper/SessionSweeper/DataStorage.cs b/SessionSweeper/SessionSweeper/DataStorage.cs
index f21eaab..eeee99b 100644
--- a/SessionSweeper/SessionSweeper/DataStorage.cs
+++ b/SessionSweeper/SessionSweeper/DataStorage.cs
@@ -10,7 +10,7 @@ namespace SessionSweeper
{
class DataStorage
{
- public static Process pGTAV;
+ public static Process pRDR2;
public static bool LobbyLocked = false;
public static bool AntiIdlingActive = false;
diff --git a/SessionSweeper/SessionSweeper/FirewallControl.cs b/SessionSweeper/SessionSweeper/FirewallControl.cs
index e97342f..c7a28ef 100644
--- a/SessionSweeper/SessionSweeper/FirewallControl.cs
+++ b/SessionSweeper/SessionSweeper/FirewallControl.cs
@@ -16,8 +16,8 @@ public class FWCtrl
public void LockLobby(bool playSound = false)
{
INetFwRule newRule = (INetFwRule)Activator.CreateInstance(typeFWRule);
- newRule.Name = "GTA V Session Lock";
- newRule.Description = "GTA V Session Lock";
+ newRule.Name = "RDR2 Session Lock";
+ newRule.Description = "RDR2 Session Lock";
newRule.Protocol = (int)NET_FW_IP_PROTOCOL_.NET_FW_IP_PROTOCOL_UDP;
newRule.LocalPorts = "6672,61455,61457,61456,61458";
newRule.Direction = NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_OUT;
@@ -35,7 +35,7 @@ public void LockLobby(bool playSound = false)
public void UnlockLobby(bool playSound = false)
{
INetFwPolicy2 fwPolicy2 = (INetFwPolicy2)Activator.CreateInstance(typeFWPolicy2);
- fwPolicy2.Rules.Remove("GTA V Session Lock");
+ fwPolicy2.Rules.Remove("RDR2 Session Lock");
if (playSound)
DataStorage.pUnlocked.Play();
diff --git a/SessionSweeper/SessionSweeper/SessionSweeper.csproj b/SessionSweeper/SessionSweeper/SessionSweeper.csproj
index 31e08b2..ff6a671 100644
--- a/SessionSweeper/SessionSweeper/SessionSweeper.csproj
+++ b/SessionSweeper/SessionSweeper/SessionSweeper.csproj
@@ -63,7 +63,10 @@
true
- true
+ false
+
+
+ false
diff --git a/SessionSweeper/SessionSweeper/SessionSweeper.csproj.user b/SessionSweeper/SessionSweeper/SessionSweeper.csproj.user
index 9116883..3e8d646 100644
--- a/SessionSweeper/SessionSweeper/SessionSweeper.csproj.user
+++ b/SessionSweeper/SessionSweeper/SessionSweeper.csproj.user
@@ -10,4 +10,7 @@
de-DE
false
+
+ false
+
\ No newline at end of file
diff --git a/SessionSweeper/SessionSweeper/fMain.cs b/SessionSweeper/SessionSweeper/fMain.cs
index 453176e..f7b3668 100644
--- a/SessionSweeper/SessionSweeper/fMain.cs
+++ b/SessionSweeper/SessionSweeper/fMain.cs
@@ -29,7 +29,7 @@ protected override void WndProc(ref Message m)
base.WndProc(ref m);
if (m.Msg == 0x0312)
{
- if (isGTAVRunning())
+ if (isRDR2Running())
{
Keys key = (Keys)(((int)m.LParam >> 16) & 0xFFFF);
int id = m.WParam.ToInt32();
@@ -54,20 +54,20 @@ protected override void WndProc(ref Message m)
else
{
Activate();
- MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("RDR2 was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
- private bool isGTAVRunning()
+ private bool isRDR2Running()
{
bool isRunning = false;
foreach (Process process in Process.GetProcesses())
{
- if (process.ProcessName.Equals("GTA5"))
+ if (process.ProcessName.Equals("RDR2"))
{
isRunning = true;
- DataStorage.pGTAV = process;
+ DataStorage.pRDR2 = process;
break;
}
}
@@ -76,7 +76,7 @@ private bool isGTAVRunning()
private void ToggleNetwork()
{
- if (isGTAVRunning())
+ if (isRDR2Running())
{
if (!tmrNetwork.Enabled)
{
@@ -88,7 +88,7 @@ private void ToggleNetwork()
else
{
Activate();
- MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("RDR2 was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@@ -96,7 +96,7 @@ private void ToggleAntiIdling()
{
DataStorage.AntiIdlingActive = !DataStorage.AntiIdlingActive;
- if (isGTAVRunning())
+ if (isRDR2Running())
{
if (DataStorage.AntiIdlingActive)
{
@@ -114,32 +114,32 @@ private void ToggleAntiIdling()
else
{
Activate();
- MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("RDR2 was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void SweepSession()
{
- if (isGTAVRunning())
+ if (isRDR2Running())
{
if (!tmrResume.Enabled)
{
DataStorage.pPending.Play();
- Toolkit.SuspendProcess(DataStorage.pGTAV.Id);
+ Toolkit.SuspendProcess(DataStorage.pRDR2.Id);
tmrResume.Start();
}
}
else
{
Activate();
- MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("RDR2 was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void ToggleLockSession()
{
if (!DataStorage.HasAdministrativeRight) { return; }
- if (isGTAVRunning())
+ if (isRDR2Running())
{
if (DataStorage.LobbyLocked)
{
@@ -158,7 +158,7 @@ private void ToggleLockSession()
else
{
Activate();
- MessageBox.Show("GTA V was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("RDR2 was not detected!", "SessionSweeper", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@@ -171,7 +171,7 @@ private void tmrNetwork_Tick(object sender, EventArgs e)
private void tmrResume_Tick(object sender, EventArgs e)
{
- Toolkit.ResumeProcess(DataStorage.pGTAV.Id);
+ Toolkit.ResumeProcess(DataStorage.pRDR2.Id);
DataStorage.pSweeped.Play();
tmrResume.Stop();
}