mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-29 16:00:32 +00:00
Adjust KCL switching endianness
This commit is contained in:
parent
7e2ab15d19
commit
2a1b7b1d97
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ namespace FirstPlugin
|
|||
new ToolStripMenuItem("Replace", null, Replace, Keys.Control | Keys.R),
|
||||
new ToolStripSeparator(),
|
||||
new ToolStripMenuItem("Big Endian Mode", null, SwapEndianess, Keys.Control | Keys.B)
|
||||
{ Checked = (KclFile.ByteOrder == Syroot.BinaryData.ByteOrder.BigEndian), },
|
||||
{ Checked = (KclFile.ByteOrder == Syroot.BinaryData.ByteOrder.BigEndian), CheckOnClick = true },
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -459,7 +459,7 @@ namespace FirstPlugin
|
|||
|
||||
private void SwapEndianess(object sender, EventArgs args)
|
||||
{
|
||||
if (KclFile.ByteOrder == Syroot.BinaryData.ByteOrder.BigEndian)
|
||||
if (!((ToolStripMenuItem)sender).Checked)
|
||||
KclFile.ByteOrder = Syroot.BinaryData.ByteOrder.LittleEndian;
|
||||
else
|
||||
KclFile.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian;
|
||||
|
|
Loading…
Reference in a new issue