mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 18:36:28 -05:00
Fix box name write for sav8swsh
only used via the view-all-boxes popup when switching boxes ty anubis!
This commit is contained in:
parent
6fdc71b2e4
commit
b84cae9ff5
|
|
@ -8,7 +8,7 @@ public sealed class BoxLayout8 : SaveBlock
|
|||
|
||||
public BoxLayout8(SAV8SWSH sav, SCBlock block) : base(sav, block.Data) { }
|
||||
|
||||
private int GetBoxNameOffset(int box) => SAV6.LongStringLength * box;
|
||||
private static int GetBoxNameOffset(int box) => SAV6.LongStringLength * box;
|
||||
|
||||
public string GetBoxName(int box)
|
||||
{
|
||||
|
|
@ -18,7 +18,7 @@ public string GetBoxName(int box)
|
|||
public void SetBoxName(int box, string value)
|
||||
{
|
||||
var data = SAV.SetString(value, strlen, strlen, 0);
|
||||
var offset = GetBoxNameOffset(box) + (SAV6.LongStringLength * box);
|
||||
var offset = GetBoxNameOffset(box);
|
||||
SAV.SetData(Data, data, offset);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user