Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
#80 Majiro: extract messagebox strings
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Oct 26, 2022
1 parent a8c5fad commit e48ece7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VNTextPatch.Shared/Scripts/Majiro/MajiroScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ private void ReadCodeUntilRet(Stream stream, int addr, List<int> remainingAddres
_textCodeRanges.AddRange(choices);
break;

case MajiroOpcodes.Callp when (int)operands[0] == MajiroSyscalls.MessageBox:
_textCodeRanges.Add(ldstrRanges.Pop());
break;

case MajiroOpcodes.Ret:
return;

Expand Down
1 change: 1 addition & 0 deletions VNTextPatch.Shared/Scripts/Majiro/MajiroSyscalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ internal class MajiroSyscalls
{
public const int Ruby = 0x3198FD01;
public const int Select = 0x0A7A489C;
public const int MessageBox = -0x18D260AE;
}
}

0 comments on commit e48ece7

Please sign in to comment.