diff 06/t6rp.xhtml @ 13:2925b0e246c6 default tip

Fix a lot of things, and add a TODO.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 17 Feb 2012 12:54:08 +0100
parents 9f0e37b7eeab
children
line wrap: on
line diff
--- a/06/t6rp.xhtml
+++ b/06/t6rp.xhtml
@@ -9,15 +9,14 @@
 		<h1>T6RP format</h1>
 		<p>The T6RP format is the replay format used by EoSD.</p>
 
-		<p>It is composed of a header and an "encrypted" data section, which is itself composed of a header, per-stage structures and lists of keystates.</p>
+		<p>It is composed of a header and an “encrypted” data section, which is itself composed of a header, per-stage structures and lists of keystates.</p>
 
 
 		<h2>Header</h2>
 <pre>
 typedef struct {
     char magic[4]; // T6RP
-    uint16_t unknown; //TODO: always 0x0102
-                      // Seems to be a switch, if 0x0102 do something, else (whatever the value is), do something else
+    uint16_t version; // 0x0102 for 1.02h
     uint8_t player; // 0 = ReimuA, 1 = ReimuB, 2 = MarisaA, 3 = MarisaB
     uint8_t rank; // 0 = Easy, 3 = Lunatic, 4 = Extra
     uint32_t checksum; // (0x3f000318 + key + sum(c for c in decrypted_data)) % (2 ** 32)
@@ -69,9 +68,9 @@ typedef struct {
     int8_t lives;
     int8_t bombs;
     uint8_t difficulty; //TODO: WARNING: This has a huge effect on the game!
-    // It is also called rank (but we use the term "difficulty" because "rank" is the official name for Easy/Normal/Hard/Lunatic/Extra)
+    // It is also called rank (but we use the term “difficulty” because “rank” is the official name for Easy/Normal/Hard/Lunatic/Extra)
     // See: http://en.touhouwiki.net/wiki/Embodiment_of_Scarlet_Devil/Gameplay#Rank
-    uint8_t unknown3[3]; //TODO: seems to be ignored by the game. Padding?
+    uint32_t unknown3; //TODO: seems to be ignored by the game. Padding?
     thrpy6_keystate_t keystates[];
 } thrpy6_stage_t;
 </pre>