@@ -136,19 +136,19 @@ int Kelf::LoadKelf(const std::string &filename)
136
136
break ;
137
137
}
138
138
switch (header.ApplicationType ) {
139
- case 0 :
139
+ case KELFTYPE_DISC_WOOBLE :
140
140
printf (" header.ApplicationType = 0 (disc wobble \? )\n " );
141
141
break ;
142
- case 1 :
142
+ case KELFTYPE_XOSDMAIN :
143
143
printf (" header.ApplicationType = 1 (xosdmain)\n " );
144
144
break ;
145
- case 5 :
145
+ case KELFTYPE_DVDPLAYER_KIRX :
146
146
printf (" header.ApplicationType = 5 (dvdplayer kirx)\n " );
147
147
break ;
148
- case 7 :
148
+ case KELFTYPE_DVDPLAYER_KELF :
149
149
printf (" header.ApplicationType = 7 (dvdplayer kelf)\n " );
150
150
break ;
151
- case 11 :
151
+ case KELFTYPE_EARLY_MBR :
152
152
printf (" header.ApplicationType = 11 (early mbr \? )\n " );
153
153
break ;
154
154
default :
@@ -159,9 +159,9 @@ int Kelf::LoadKelf(const std::string &filename)
159
159
break ;
160
160
}
161
161
printf (" header.Flags = %#X" , header.Flags );
162
- if (header.Flags == 0x022c )
162
+ if (header.Flags == HDR_PREDEF_KELF )
163
163
printf (" - kelf:" );
164
- else if (header.Flags == 0x021c )
164
+ else if (header.Flags == HDR_PREDEF_KIRX )
165
165
printf (" - kirx:" );
166
166
else
167
167
printf (" - unknown:" );
@@ -203,7 +203,7 @@ int Kelf::LoadKelf(const std::string &filename)
203
203
printf (" header.MGZones = %#X |" , header.MGZones );
204
204
if (header.MGZones == 0 )
205
205
printf (" All regions blocked (useless)|" );
206
- else if (header.MGZones == 0xFF )
206
+ else if (header.MGZones == REGION_ALL_ALLOWED )
207
207
printf (" All regions allowed|" );
208
208
else {
209
209
if (header.MGZones & REGION_JP)
@@ -389,7 +389,7 @@ int Kelf::SaveKelf(const std::string &filename, int headerid)
389
389
header.SystemType = SYSTEM_TYPE_PS2; // same for COH (arcade)
390
390
header.ApplicationType = 1 ; // 1 = xosdmain, 5 = dvdplayer kirx 7 = dvdplayer kelf 0xB - ?? 0x00 - ??
391
391
// TODO: implement and check 3DES/1DES difference based on header.Flags. In both - encryption and decryption.
392
- header.Flags = 0x022C ; // ?? 00000010 00101100 binary, 0x021C for kirx
392
+ header.Flags = HDR_PREDEF_KELF ; // ?? 00000010 00101100 binary, 0x021C for kirx
393
393
header.MGZones = 0xFF ; // region bit, 1 - allowed
394
394
header.BitCount = 0 ;
395
395
// ?? balika, wisi: strange value, represents number of blacklisted iLinkID, ConsoleID
0 commit comments