Nice! I knew someone would pull tru.
Now, some help. This program has a 16-bit renderer you could use, but I guess adding this pallete renderer is a simpler choice.
Code:
/* Update VGA palette hardware */
void update_palette(void)
{
color_palette = (Uint16 *) VDP2_COLRAM;
int index;
if(bitmap.pal.update == 0) return;
for(index = 0; index < PALETTE_SIZE; index += 1)
{
color_palette[index]=makecol8(bitmap.pal.color[index][0],bitmap.pal.color[index][1],bitmap.pal.color[index][2]);
}
}
bitmap.pal.update = 0;
}
(EDIT : ups, not i, index. And i forgot the correct place for pallete... ARG!)
use the makecol8 function I created for the Phoenix emu... Don't worry about the "hack" graphics, here is no need for making all emulators run under the tile-based system of Saturn (altough they will run faster that way)
Now, for the file loading problem...
You'll need to use the Work RAM space :
cart.rom = (Uint8 *) 0x00200000;
This is the place where I load Chibi Maruko Chan on Stardust, and it's a free, fast 1MByte of space... Don't forget to increase the number of sectors (the last number) LoadROM uses!
(Edited by TakaIsSilly at 7:43 am on Dec. 19, 2001)
(Edited by TakaIsSilly at 7:47 am on Dec. 19, 2001)
(Edited by TakaIsSilly at 7:51 am on Dec. 19, 2001)