Previous 15994 Revisions Next

r8264 Saturday 12th June, 2010 at 02:30:27 UTC by Barry Rodewald
[AES] Added protection handling for remaining encrypted games, added KOF99 to the software list.
[hash]aes.xml
[src/mess/devices]aescart.c

hash/aes.xml
r8263r8264
10531053      </part>
10541054   </software>
10551055
1056<!-- ID 251 -->
1057   <software name="kof99">
1058      <description>The King of Fighters '99 - Millennium Battle</description>
1059      <year>1999</year>
1060      <publisher>SNK</publisher>
1061      <part name="cart" interface="aes_cart" feature="kof99_crypt">
1062         <dataarea name="maincpu" size="9437184">
1063                <rom name="251-sma.kc" size="262144" crc="6c9d0647" sha1="2a0ce62ca6c18007e8fbe1b60475c7874ab79389" offset="0c0000" />
1064                <rom name="251-p1.bin" size="4194304" crc="006e4532" sha1="47791ab4044ad55988b1d3412d95b65b91a163c8" offset="100000" />
1065                <rom name="251-pg2.bin" size="4194304" crc="d9057f51" sha1="8d365b4dd40351495df99d6c765df1434b0b0548" offset="500000" />
1066         </dataarea>
1067         <dataarea name="fixed" size="131072">
1068                <rom value="0" length="131072" offset="000000" loadflag="fill" />
1069         </dataarea>
1070         <dataarea name="audiocpu" size="196608">
1071                <rom name="251-m1.bin" size="131072" crc="5e74539c" sha1="6f49a9343cbd026b2c6720ff3fa2e5b1f85e80da" offset="000000" />
1072            <rom size="131072" offset="010000" loadflag="reload" />
1073         </dataarea>
1074         <dataarea name="ymsnd" size="14680064">
1075                <rom name="251-v1.bin" size="4194304" crc="ef2eecc8" sha1="8ed13b9db92dba3124bc5ba66e3e275885ece24a" offset="000000" />
1076                <rom name="251-v2.bin" size="4194304" crc="73e211ca" sha1="0e60fa64cab6255d9721e2b4bc22e3de64c874c5" offset="400000" />
1077                <rom name="251-v3.bin" size="4194304" crc="821901da" sha1="c6d4975bfaa19a62ed59126cadf2578c0a5c257f" offset="800000" />
1078                <rom name="251-v4.bin" size="2097152" crc="b49e6178" sha1="dde6f76e958841e8c99b693e13ced9aa9ef316dc" offset="c00000" />
1079         </dataarea>
1080         <dataarea name="sprites" size="67108864">
1081                <rom name="251-c1.bin" size="8388608" crc="0f9e93fe" sha1="c7d77f0833c6f526f632e4f2dce59e302f6b9a15" offset="000000" loadflag="load16_byte" />
1082                <rom name="251-c2.bin" size="8388608" crc="e71e2ea3" sha1="39c7a326fddbcca3b29c68cdc96aad4d62295c0f" offset="000001" loadflag="load16_byte" />
1083                <rom name="251-c3.bin" size="8388608" crc="238755d2" sha1="01125b5c7a28e350f091280b041954fd1ac7c98f" offset="1000000" loadflag="load16_byte" />
1084                <rom name="251-c4.bin" size="8388608" crc="438c8b22" sha1="ffbc643f5b27dd00f2f95d4ef4c5f29ee814722b" offset="1000001" loadflag="load16_byte" />
1085                <rom name="251-c5.bin" size="8388608" crc="0b0abd0a" sha1="d5ad324fe523bdc6f09209d236cc4932524a48f1" offset="2000000" loadflag="load16_byte" />
1086                <rom name="251-c6.bin" size="8388608" crc="65bbf281" sha1="79ae174667a23dabcfe865b6cd6133c86098452e" offset="2000001" loadflag="load16_byte" />
1087                <rom name="251-c7.bin" size="8388608" crc="ff65f62e" sha1="7cd335fede05b56e15db90ce407c1183a78da4e9" offset="3000000" loadflag="load16_byte" />
1088                <rom name="251-c8.bin" size="8388608" crc="8d921c68" sha1="42acf1d27d52a8e3b6262eb7df50693c0b135565" offset="3000001" loadflag="load16_byte" />
1089         </dataarea>
1090      </part>
1091   </software>
1092
10561093<!-- ID 256 -->
10571094   <software name="mslug3">
10581095      <description>Metal Slug 3</description>
src/mess/devices/aescart.c
r8263r8264
416416      fatfury2_install_protection(image->machine);
417417      logerror("Installed Fatal Fury 2 protection\n");
418418   }
419   if(strcmp(image_get_feature(image),"kof99_crypt") == 0)
420   {
421      kof99_decrypt_68k(image->machine);
422      state->fixed_layer_bank_type = 1;
423      kof99_neogeo_gfx_decrypt(image->machine, 0x00);
424      kof99_install_protection(image->machine);
425      logerror("Decrypted KOF99 code and graphics.\n");
426   }
419427   if(strcmp(image_get_feature(image),"mslug3_crypt") == 0)
420428   {
421429      state->fixed_layer_bank_type = 1;
r8263r8264
439447      neogeo_cmc50_m1_decrypt(image->machine);
440448      kof2000_neogeo_gfx_decrypt(image->machine, 0x57);
441449      install_pvc_protection(image->machine);
450      logerror("Decrypted SvC code, sound and graphics.\n");
442451   }
443452   if(strcmp(image_get_feature(image),"samsho5_crypt") == 0)
444453   {
r8263r8264
447456      state->fixed_layer_bank_type = 1;
448457      neogeo_cmc50_m1_decrypt(image->machine);
449458      kof2000_neogeo_gfx_decrypt(image->machine, 0x0f);
459      logerror("Decrypted Samurai Shodown V code, sound and graphics.\n");
450460   }
461   if(strcmp(image_get_feature(image),"kof2001_crypt") == 0)
462   {
463      state->fixed_layer_bank_type = 1;
464      kof2000_neogeo_gfx_decrypt(image->machine, 0x1e);
465      neogeo_cmc50_m1_decrypt(image->machine);
466      logerror("Decrypted KOF2001 code and graphics.\n");
467   }
468   if(strcmp(image_get_feature(image),"kof2002_crypt") == 0)
469   {
470      kof2002_decrypt_68k(image->machine);
471      neo_pcm2_swap(image->machine, 0);
472      neogeo_cmc50_m1_decrypt(image->machine);
473      kof2000_neogeo_gfx_decrypt(image->machine, 0xec);
474      logerror("Decrypted KOF2002 code, sound and graphics.\n");
475   }
476   if(strcmp(image_get_feature(image),"mslug4_crypt") == 0)
477   {
478      state->fixed_layer_bank_type = 1; /* USA violent content screen is wrong -- not a bug, confirmed on real hardware! */
479      neogeo_cmc50_m1_decrypt(image->machine);
480      kof2000_neogeo_gfx_decrypt(image->machine, 0x31);
481      neo_pcm2_snk_1999(image->machine, 8);
482      logerror("Decrypted Metal Slug 4 code, sound and graphics.\n");
483   }
484   if(strcmp(image_get_feature(image),"mslug5_crypt") == 0)
485   {
486      mslug5_decrypt_68k(image->machine);
487      neo_pcm2_swap(image->machine, 2);
488      state->fixed_layer_bank_type = 1;
489      neogeo_cmc50_m1_decrypt(image->machine);
490      kof2000_neogeo_gfx_decrypt(image->machine, 0x19);
491      install_pvc_protection(image->machine);
492      logerror("Decrypted Metal Slug 5 code and graphics, and installed protection routines.\n");
493   }
451494}
452495
453496/*

Previous 15994 Revisions Next


© 1998-2018 The MESS Team