mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-29 13:26:51 -05:00
Update to .NET 10 (#683)
This commit is contained in:
@@ -3,26 +3,25 @@
|
||||
using NHSE.Core;
|
||||
using NHSE.Injection;
|
||||
|
||||
namespace NHSE.WinForms
|
||||
namespace NHSE.WinForms;
|
||||
|
||||
public partial class SimpleHexEditor : Form
|
||||
{
|
||||
public partial class SimpleHexEditor : Form
|
||||
public byte[] Bytes;
|
||||
|
||||
public SimpleHexEditor(byte[] originalBytes)
|
||||
{
|
||||
public byte[] Bytes;
|
||||
|
||||
public SimpleHexEditor(byte[] originalBytes)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.TranslateInterface(GameInfo.CurrentLanguage);
|
||||
RTB_RAM.Text = string.Join(" ", originalBytes.Select(z => $"{z:X2}"));
|
||||
Bytes = originalBytes;
|
||||
}
|
||||
|
||||
private void Update_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
var bytestring = RTB_RAM.Text.Replace("\t", "").Replace(" ", "").Trim();
|
||||
Bytes = Decoder.StringToByteArray(bytestring);
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
InitializeComponent();
|
||||
this.TranslateInterface(GameInfo.CurrentLanguage);
|
||||
RTB_RAM.Text = string.Join(" ", originalBytes.Select(z => $"{z:X2}"));
|
||||
Bytes = originalBytes;
|
||||
}
|
||||
}
|
||||
|
||||
private void Update_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
var bytestring = RTB_RAM.Text.Replace("\t", "").Replace(" ", "").Trim();
|
||||
Bytes = Decoder.StringToByteArray(bytestring);
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user