From 3f3367575a50334f1062b58306081595826af69d Mon Sep 17 00:00:00 2001 From: avan Date: Fri, 24 May 2024 19:48:49 +0800 Subject: [PATCH] Fixed the operation mechanism of this program's payload when using Frame4 to prevent errors from occurring. --- PS4CheaterNeo/Properties/AssemblyInfo.cs | 4 ++-- PS4CheaterNeo/SendPayload.Designer.cs | 1 + PS4CheaterNeo/SendPayload.cs | 7 ++++++- PS4CheaterNeo/common/Constant.cs | 1 + PS4CheaterNeo/common/ps4dbg/PS4Tool.cs | 7 +++++-- README.md | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/PS4CheaterNeo/Properties/AssemblyInfo.cs b/PS4CheaterNeo/Properties/AssemblyInfo.cs index 9b39b1e..147dc8e 100644 --- a/PS4CheaterNeo/Properties/AssemblyInfo.cs +++ b/PS4CheaterNeo/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.3.0")] -[assembly: AssemblyFileVersion("1.0.3.0")] +[assembly: AssemblyVersion("1.0.3.1")] +[assembly: AssemblyFileVersion("1.0.3.1")] diff --git a/PS4CheaterNeo/SendPayload.Designer.cs b/PS4CheaterNeo/SendPayload.Designer.cs index 85cd98c..66d995e 100644 --- a/PS4CheaterNeo/SendPayload.Designer.cs +++ b/PS4CheaterNeo/SendPayload.Designer.cs @@ -142,6 +142,7 @@ private void InitializeComponent() this.PS4DBGTypeComboBox.Name = "PS4DBGTypeComboBox"; this.PS4DBGTypeComboBox.Size = new System.Drawing.Size(171, 20); this.PS4DBGTypeComboBox.TabIndex = 7; + this.PS4DBGTypeComboBox.SelectedIndexChanged += new System.EventHandler(this.PS4DBGTypeComboBox_SelectedIndexChanged); // // SendPayload // diff --git a/PS4CheaterNeo/SendPayload.cs b/PS4CheaterNeo/SendPayload.cs index 3dcc2cd..e6d0922 100644 --- a/PS4CheaterNeo/SendPayload.cs +++ b/PS4CheaterNeo/SendPayload.cs @@ -151,7 +151,6 @@ private void SendPayload_FormClosing(object sender, FormClosingEventArgs e) if ((VersionBox.Text ?? "") != "") Properties.Settings.Default.PS4FWVersion.Value = VersionBox.Text; if ((IpBox.Text ?? "") != "") Properties.Settings.Default.PS4IP.Value = IpBox.Text; if ((PortBox.Text ?? "") != "") Properties.Settings.Default.PS4Port.Value = Convert.ToUInt16(PortBox.Text); - Properties.Settings.Default.PS4DBGType.Value = (PS4DebugLibType)PS4DBGTypeComboBox.SelectedItem; Properties.Settings.Default.Save(); } catch (Exception ex) @@ -163,5 +162,11 @@ private void SendPayload_FormClosing(object sender, FormClosingEventArgs e) } private void VersionComboBox_SelectedIndexChanged(object sender, EventArgs e) => VersionBox.Text = (string)VersionComboBox.SelectedItem; + + private void PS4DBGTypeComboBox_SelectedIndexChanged(object sender, EventArgs e) + { + Properties.Settings.Default.PS4DBGType.Value = (PS4DebugLibType)PS4DBGTypeComboBox.SelectedItem; + Properties.Settings.Default.Save(); + } } } diff --git a/PS4CheaterNeo/common/Constant.cs b/PS4CheaterNeo/common/Constant.cs index 136baa6..115d086 100644 --- a/PS4CheaterNeo/common/Constant.cs +++ b/PS4CheaterNeo/common/Constant.cs @@ -72,6 +72,7 @@ partial class Constant "4.55", "4.05", "PS5", + "11.00", }; public static readonly Dictionary> GameInfos = new Dictionary>() diff --git a/PS4CheaterNeo/common/ps4dbg/PS4Tool.cs b/PS4CheaterNeo/common/ps4dbg/PS4Tool.cs index cc10000..3ddc4ce 100644 --- a/PS4CheaterNeo/common/ps4dbg/PS4Tool.cs +++ b/PS4CheaterNeo/common/ps4dbg/PS4Tool.cs @@ -43,7 +43,7 @@ static PS4Tool() mutex = new Mutex(false, mutexId, out _, mSec); mutexs = new Mutex[mutexFactor*2]; - ps4s = new PS4DBG[mutexs.Length]; + ps4s = new IPS4DBG[mutexs.Length]; } /// @@ -118,7 +118,10 @@ public static bool Connect(string ip, out string msg, int connectTimeout = 10000 { ps4s[idx].Disconnect(); ps4s[idx] = null; - ps4s[idx] = new PS4DBG(ip); + if (ps4DBGType == PS4DebugLibType.ps4debug) + ps4s[idx] = new PS4DBG(ip); + else + ps4s[idx] = new FRAME4(ip); result = ps4s[idx].Connect(connectTimeout, sendTimeout, receiveTimeout); } } diff --git a/README.md b/README.md index 6db2638..a1acb17 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ PS4CheaterNeo is a program to find game cheat codes, and it is based on [`ps4debug`](https://github.com/jogolden/ps4debug) and [`.Net Framework 4.8`](https://support.microsoft.com/en-us/topic/microsoft-net-framework-4-8-offline-installer-for-windows-9d23f658-3b97-68ab-d013-aa3c3e7495e0). -Currently in `version 1.0.3.0` +Currently in `version 1.0.3.1` ## Table of Contents