mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-28 05:44:40 -05:00
Add popup indicating how sysbot works.
Similar to LiveHex (PKHeX injecting pkm while game is running), this will allow you to r/w your inventory live so that you can quickly swap in items -- example usage: customizing your town with various items :D
This commit is contained in:
12
NHSE.WinForms/Properties/Settings.Designer.cs
generated
12
NHSE.WinForms/Properties/Settings.Designer.cs
generated
@@ -59,6 +59,18 @@ internal sealed partial class Settings : global::System.Configuration.Applicatio
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool SysBotPrompted {
|
||||
get {
|
||||
return ((bool)(this["SysBotPrompted"]));
|
||||
}
|
||||
set {
|
||||
this["SysBotPrompted"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("2889584832")]
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
<Setting Name="SysBotPort" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">6000</Value>
|
||||
</Setting>
|
||||
<Setting Name="SysBotPrompted" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="SysBotPouchOffset" Type="System.UInt32" Scope="User">
|
||||
<Value Profile="(Default)">2889584832</Value>
|
||||
</Setting>
|
||||
|
||||
@@ -23,6 +23,21 @@ public SysBotUI(Action<byte[]> read, Func<byte[]> write, InjectionType type)
|
||||
|
||||
TB_IP.Text = Settings.SysBotIP;
|
||||
TB_Port.Text = Settings.SysBotPort.ToString();
|
||||
|
||||
PopPrompt();
|
||||
}
|
||||
|
||||
private void PopPrompt()
|
||||
{
|
||||
if (Settings.SysBotPrompted)
|
||||
return;
|
||||
|
||||
const string info = "This SysBot reads and writes RAM directly to your game when called to Read/Write.";
|
||||
const string reqd = "Using this functionality requires the sys-botbase sysmodule running on the console." +
|
||||
"Your console must be on the same network as the PC running this program.";
|
||||
WinFormsUtil.Alert(info, reqd);
|
||||
Settings.SysBotPrompted = true;
|
||||
Settings.Save();
|
||||
}
|
||||
|
||||
private uint GetOffset(InjectionType type)
|
||||
|
||||
Reference in New Issue
Block a user