Skip to content

Commit a95bbe2

Browse files
committed
Add description of GFX.RAW payload
1 parent e2b2ab5 commit a95bbe2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

util/image.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ void SaveRAW_TIM(char* out, char** filenames, size_t nbFiles)
9797
* binary data clut_data
9898
*/
9999

100+
/* GFX.RAW FILE
101+
0x00000 - 0x32000 - GFX.RAW.TIM image_data[0]
102+
0x32000 - 0x52000 - GFX_REST.RAW.TIM image_data[1]
103+
0x52000 - 0x58000 - CLUT DATA clut_data
104+
0x58000 - 0x60000 - NULL BYTES
105+
*/
106+
100107
for (size_t i = 0; i < nbFiles; i++)
101108
{
102109
FILE* fp = fopen(filenames[i], "rb");
@@ -134,6 +141,8 @@ void SaveRAW_TIM(char* out, char** filenames, size_t nbFiles)
134141
fprintf(stderr, "Unable to open '%s' file\n", out);
135142
return;
136143
}
144+
145+
// Here re-order tim raw image and clut data as well to psx raw data
137146

138147
for (int i = 0; i < nbFiles; i++)
139148
{

0 commit comments

Comments
 (0)