mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-29 21:36:36 -05:00
Extract translatable strings to static class
This commit is contained in:
@@ -75,8 +75,8 @@ public void HexEdit(uint offset, int length)
|
||||
if (read.Length != write.Length)
|
||||
{
|
||||
var prompt = WinFormsUtil.Prompt(MessageBoxButtons.OKCancel,
|
||||
$"Read size (0x{read.Length:X}) != Write Size (0x{write.Length})",
|
||||
"Write anyway?");
|
||||
string.Format(MessageStrings.MsgDataSizeMismatchRAM, read.Length, write.Length),
|
||||
MessageStrings.MsgAskWriteAnyway);
|
||||
|
||||
if (prompt != DialogResult.OK)
|
||||
return;
|
||||
@@ -92,10 +92,7 @@ public 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);
|
||||
WinFormsUtil.Alert(MessageStrings.MsgSysBotInfo, MessageStrings.MsgSysBotRequired);
|
||||
Settings.SysBotPrompted = true;
|
||||
Settings.Save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user