parent
8d69a68555
commit
c63889fbc0
|
@ -359,8 +359,7 @@ static void loadCart(tic_mem* tic, tic_cartridge* cart, const u8* buffer, s32 si
|
|||
tic->api.load(cart, buffer, size, palette);
|
||||
|
||||
if(!palette)
|
||||
for(s32 i = 0; i < TIC_BANKS; i++)
|
||||
memcpy(cart->banks[i].palette.data, tic->config.banks[i].palette.data, sizeof(tic_palette));
|
||||
memcpy(cart->bank0.palette.data, tic->config.bank0.palette.data, sizeof(tic_palette));
|
||||
}
|
||||
|
||||
static bool loadRom(tic_mem* tic, const void* data, s32 size, bool palette)
|
||||
|
|
|
@ -1775,8 +1775,7 @@ static void api_load(tic_cartridge* cart, const u8* buffer, s32 size, bool palet
|
|||
{
|
||||
static const u8 DB16[] = {0x14, 0x0c, 0x1c, 0x44, 0x24, 0x34, 0x30, 0x34, 0x6d, 0x4e, 0x4a, 0x4e, 0x85, 0x4c, 0x30, 0x34, 0x65, 0x24, 0xd0, 0x46, 0x48, 0x75, 0x71, 0x61, 0x59, 0x7d, 0xce, 0xd2, 0x7d, 0x2c, 0x85, 0x95, 0xa1, 0x6d, 0xaa, 0x2c, 0xd2, 0xaa, 0x99, 0x6d, 0xc2, 0xca, 0xda, 0xd4, 0x5e, 0xde, 0xee, 0xd6};
|
||||
|
||||
for(s32 i = 0; i < TIC_BANKS; i++)
|
||||
memcpy(cart->banks[i].palette.data, DB16, sizeof(tic_palette));
|
||||
memcpy(cart->bank0.palette.data, DB16, sizeof(tic_palette));
|
||||
}
|
||||
|
||||
#define LOAD_CHUNK(to) memcpy(&to, buffer, min(sizeof(to), chunk.size))
|
||||
|
|
Loading…
Reference in New Issue