Skip to content

OpOption.bin

Gong Xian edited this page Jun 8, 2023 · 4 revisions

This file, contained in the archive SYSLIST.AFS, contains strings for the Option menu. It consists mostly of binary data, and the end of the file contains an offset table and text strings.

Offset Table

The offset table is located at 0x23B0. It contains 51 entries with two 4-byte values:

  • An index
  • An offset for a string

Though there are 51 entries, 10 of them point to the same strings as other entries.

Strings

There are 41 strings in OpOption.bin. The first string is located at 0x25CD. The strings consist of three parts:

  • A series of control codes setting text parameters, in the format !i!h=nnn!v=nnn!x=nnn!y=nnn. The h and v numbers are scaling factors, relative to 100%. The x and y coordinates are relative to the top-left corner of the screen. The x and y parameters also accept relative values using + or - instead of =, such as x+10.
  • The text in Shift-JIS
  • The closing codes !d!o

Strings are terminated with byte 00. There is one empty string at 0x2692 consisting only of 00.

There is a limit of 18 characters in each string. A line break is forced after 18 characters, but no other side effects occur.