wince: return actual vmu system area in GetMediaInfo

revert previous default vmu change
This commit is contained in:
Flyinghead 2019-05-09 11:25:17 +02:00
parent dc7f608461
commit 05577b64f7
1 changed files with 20 additions and 41 deletions

View File

@ -288,23 +288,24 @@ struct maple_sega_controller: maple_base
u8 vmu_default[] = {
0x78, 0x9c, 0xed, 0xd2, 0x3d, 0x6a, 0x02, 0x01, 0x10, 0x06, 0xd0, 0x4f, 0x89, 0x41, 0x84, 0x74,
0x36, 0x16, 0x41, 0x8f, 0x91, 0xda, 0x0b, 0x58, 0xa5, 0xcf, 0x81, 0x52, 0x08, 0x16, 0x5a, 0x5a,
0x78, 0x14, 0x8b, 0x5c, 0xc7, 0xfc, 0xa8, 0xd9, 0x18, 0xd7, 0x65, 0xc1, 0x46, 0xd0, 0x4a, 0x09,
0x84, 0xf7, 0x86, 0x0f, 0x66, 0x98, 0x66, 0x8a, 0x59, 0x66, 0x91, 0x8c, 0xa6, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0xae, 0xef, 0xae, 0xca, 0xe3, 0xeb, 0x7d, 0xc6, 0x59, 0xd4, 0x79, 0xca, 0xa4,
0x4e, 0x5e, 0x66, 0xc9, 0xbc, 0xf3, 0xd7, 0xe7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x9c, 0xb5, 0x2b, 0xd5, 0xff, 0xae, 0xa2, 0x5c, 0xe5, 0x3d, 0x1f, 0xf9, 0xcc, 0x57, 0xd6, 0xd9,
0x64, 0x9b, 0xef, 0x14, 0xf9, 0xc9, 0x2e, 0x45, 0xb5, 0x7b, 0x3e, 0xd1, 0x28, 0x2b, 0x17, 0xfe,
0x65, 0xd0, 0x6b, 0xb5, 0x07, 0xc3, 0x6e, 0xf3, 0x38, 0x97, 0x75, 0xf6, 0x69, 0xe4, 0x37, 0x0f,
0x55, 0xff, 0x96, 0xfe, 0xcd, 0x7f, 0x96, 0xeb, 0x39, 0x00, 0xcd, 0xca, 0x06, 0x7d,
0x78,0x9c,0xed,0xd2,0x31,0x4e,0x02,0x61,0x10,0x06,0xd0,0x8f,0x04,0x28,0x4c,0x2c,
0x28,0x2d,0x0c,0xa5,0x57,0xe0,0x16,0x56,0x16,0x76,0x14,0x1e,0xc4,0x03,0x50,0x98,
0x50,0x40,0x69,0xc1,0x51,0x28,0xbc,0x8e,0x8a,0x0a,0xeb,0xc2,0xcf,0x66,0x13,0x1a,
0x13,0xa9,0x30,0x24,0xe6,0xbd,0xc9,0x57,0xcc,0x4c,0x33,0xc5,0x2c,0xb3,0x48,0x6e,
0x67,0x01,0x00,0x00,0x00,0x00,0x00,0x4e,0xaf,0xdb,0xe4,0x7a,0xd2,0xcf,0x53,0x16,
0x6d,0x46,0x99,0xb6,0xc9,0x78,0x9e,0x3c,0x5f,0x9c,0xfb,0x3c,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x80,0x5f,0xd5,0x45,0xfd,0xef,0xaa,0xca,0x6b,0xde,0xf2,0x9e,0x55,
0x3e,0xf2,0x99,0xaf,0xac,0xb3,0x49,0x95,0xef,0xd4,0xa9,0x9a,0xdd,0xdd,0x0f,0x9d,
0x52,0xca,0xc3,0x91,0x7f,0xb9,0x9a,0x0f,0x6e,0x92,0xfb,0xee,0xa1,0x2f,0x6d,0x76,
0xe9,0x64,0x9b,0xcb,0xf4,0xf2,0x92,0x61,0x33,0x79,0xfc,0xeb,0xb7,0xe5,0x44,0xf6,
0x77,0x19,0x06,0xef,
};
struct maple_sega_vmu: maple_base
@ -459,30 +460,8 @@ struct maple_sega_vmu: maple_base
{
w32(MFID_1_Storage);
//total_size;
w16(0xff);
//partition_number;
w16(0);
//system_area_block;
w16(0xFF);
//fat_area_block;
w16(0xfe);
//number_fat_areas_block;
w16(1);
//file_info_block;
w16(0xfd);
//number_info_blocks;
w16(0xd);
//volume_icon;
w8(0);
//reserved1;
w8(0);
//save_area_block;
w16(0xc8);
//number_of_save_blocks;
w16(0x1f);
//reserverd0 (something for execution files?)
w32(0);
// Get data from the vmu system area (block 0xFF)
wptr(flash_data + 0xFF * 512 + 0x40, 24);
return MDRS_DataTransfer;//data transfer
}