Skip to content

Commit

Permalink
Fix Hext output bug
Browse files Browse the repository at this point in the history
  • Loading branch information
petfriendamy committed Dec 17, 2024
1 parent 5901fa1 commit 47b1192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ExeEditor/ExeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ private string WriteHextStrings(FFText[] strings, FFText[] original, long positi
checker = true;
output.Append($"# {text2} -> {text1}");
output.AppendLine();
var temp = MainMenuTexts[i].GetBytes();
var temp = strings[i].GetBytes();
pos = position + HEXT_OFFSET_2 + (length * i);
output.Append($"{pos:X2} = ");
foreach (var x in temp)
Expand Down Expand Up @@ -1392,8 +1392,8 @@ public void CreateHextFile(string path, ExeData original)
CONFIG_MENU_TEXT_POS, GetConfigTextLength(), NUM_CONFIG_MENU_TEXTS));

//write main menu text
writer.Write(WriteHextStrings(MainMenuTexts, original.MainMenuTexts, MAIN_MENU_TEXT_POS,
MENU_TEXT_LENGTH, NUM_MENU_TEXTS));
writer.Write(WriteHextStrings(MainMenuTexts, original.MainMenuTexts,
MAIN_MENU_TEXT_POS, MENU_TEXT_LENGTH, NUM_MENU_TEXTS));

//write status effects (battle)
writer.Write(WriteHextStrings(StatusEffectsBattle, original.StatusEffectsBattle,
Expand Down

0 comments on commit 47b1192

Please sign in to comment.