Jump to content

Script directory: Difference between revisions

no edit summary
(unknown_0x00 = build date)
No edit summary
 
Line 1: Line 1:
The script directory (contained in the [[master file table]]) contains both [[bytecode]] scripts and strings used in the game. It's layout is different than the other directories in the MFT:
The script directory (contained in the [[master file table]]) contains both [[bytecode]] scripts and strings used in the game. It's layout is different than the other directories in the MFT. The <code>build_date</code> is likely referring to Konami's authoring tools, and not to the game itself. The entire script directory and its contents may be aligned to a 1-byte boundary, as the game will only issue 1-byte reads to it. However, in practice it is still aligned to a 4-byte boundary.


<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
Line 15: Line 15:


   // NOTE: offsets.script_data points here
   // NOTE: offsets.script_data points here
   u32 special_script_offset; // unknown...
   u32 special_script_offset;


   // NOTE: script_entry.offset is relative to here
   // NOTE: script_entry.offset is relative to here
   u8 bytecode[];
   u8 bytecode[];


   // Unknown data, including the "special script"
   // NOTE: special_script_offset points here
   u8 unknown[?];
  u32 special_script_size;
   u8 special_script_data[];
};
};