Skip to content

Commit 7d1bcfa

Browse files
committed
Z-A: Add Street Name side-mission string
1 parent 6609dd2 commit 7d1bcfa

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

PKHeX.Core/Saves/Access/SaveBlockAccessor9ZA.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,5 @@ public sealed class SaveBlockAccessor9ZA(SAV9ZA sav) : SCBlockAccessor
158158
private const uint KDonuts = 0xBE007476; // object: donut[999], sizeof = 0x48
159159
private const uint KDonutDistortionInUse = 0x25335B2A; // Inside distortion, this is the currently used donut
160160
public const uint KHyperspaceSurveyPoints = 0x0235471C;
161+
public const uint KStreetName = 0xBCCE00D6; // 0x26 string = 18 chars + \0
161162
}

PKHeX.WinForms/Subforms/Save Editors/Gen9/SAV_Trainer9a.Designer.cs

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PKHeX.WinForms/Subforms/Save Editors/Gen9/SAV_Trainer9a.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ private void GetDLC()
136136
}
137137

138138
MT_HyperspaceSurveyPoints.Text = SAV.GetValue<uint>(KHyperspaceSurveyPoints).ToString();
139+
TB_StreetName.Text = SAV.GetString(SAV.Blocks.GetBlock(KStreetName).Data);
139140
}
140141

141142
private void Save()
@@ -150,6 +151,7 @@ private void SaveDLC()
150151
if (SAV.SaveRevision == 0)
151152
return;
152153
SAV.SetValue(KHyperspaceSurveyPoints, Util.ToUInt32(MT_HyperspaceSurveyPoints.Text));
154+
SAV.SetString(SAV.Blocks.GetBlock(KStreetName).Data, TB_StreetName.Text, 18, StringConverterOption.ClearZero);
153155
}
154156

155157
private void SaveMap()

0 commit comments

Comments
 (0)