mirror of
https://github.com/kwsch/NHSE.git
synced 2026-03-25 03:04:26 -05:00
jp/en/zh -- only english has been translated (duh) keep in mind this translates the text in the program, not the internal flag names. not sure if other languages need to be supported; from PKHeX's experience, only spanish is updated (besides jp/zh), as most users speak english or are fine using the program in english. pls localize villager names and item names for non-english :P -- preferrably automated from raw game dumps
29 lines
796 B
C#
29 lines
796 B
C#
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using NHSE.Core;
|
|
using NHSE.Injection;
|
|
|
|
namespace NHSE.WinForms
|
|
{
|
|
public partial class SimpleHexEditor : Form
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|