MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Haze
Reged: 09/23/03
Posts: 5242
Send PM
Re: What requirement is needed to set "State Save Support" ?
11/26/07 08:41 PM


> > Are there any statics or globals?
> Sorry, I don't know what it meant.
>

variables.. int, char, etc. anything the driver relies on that isn't automatically saved should be saved.

static variables which are declared and initialized inside functions shouldn't be used because their value won't be the same at the start on future runs if you load the game / driver twice in a row withuot quitting mame.

> > Do all the chips used by the driver support save?
> Ikki.c seems not to use any (specified) chips...
>

processors, sound chips.. it has some otherwise it wouldn't run ;-)

> > Does it use the new memory banking system?
> Sorry, I don't know a old (normal?) banking system from new...

the new system uses
memory_set_bank(1, data & 0x0f);
with a memory_configure_bank call at some point earlier to set up the bank size etc.

the new system (afaik) automatically supports state saving for the memory region, the old system didn't.







Entire thread
Subject Posted by Posted on
* What requirement is needed to set "State Save Support" ? ShimaPong 11/23/07 08:54 PM
. * Re: What requirement is needed to set "State Save Support" ? Vas Crabb  11/24/07 02:23 AM
. * Re: What requirement is needed to set "State Save Support" ? ShimaPong  11/26/07 07:26 PM
. * Re: What requirement is needed to set "State Save Support" ? Haze  11/26/07 08:41 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3678