MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

ShimaPong
MAME Fan
Reged: 03/12/05
Posts: 783
Send PM


What requirement is needed to set "State Save Support" ?
#132092 - 11/23/07 08:54 PM


I'm updating ikki.c.
  • Adjusted the value of the interleave to stop flickering in some scene. (See here)
  • Added the information about (hidden) test mode, cross-hatch, color-bar and sound check.
  • Added the DIP location by reference to DIP viewer in the test mode.

And I have tried to support the save state but it seems to enable by default and doesn't need any state_save_register_global().
Gfx, sound and even flip screen... these will be saved fine.
In this case, is it no problem to set "GAME_SUPPORTS_SAVE" without any modification ?
Or needs another requirement ?



"Any company has no power to stop people emulating"
MAME is the emulator of no giving in the pressure from any company even if they don't allow



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4461
Loc: Melbourne, Australia
Send PM


Re: What requirement is needed to set "State Save Support" ? new [Re: ShimaPong]
#132121 - 11/24/07 02:23 AM


> I'm updating ikki.c.
>
> Adjusted the value of the interleave to stop flickering in some scene. (See here)
> Added the information about (hidden) test mode, cross-hatch, color-bar and sound
> check.
> Added the DIP location by reference to DIP viewer in the test mode.
>
> And I have tried to support the save state but it seems to enable by default and
> doesn't need any state_save_register_global().
> Gfx, sound and even flip screen... these will be saved fine.
> In this case, is it no problem to set "GAME_SUPPORTS_SAVE" without any modification ?
> Or needs another requirement ?

Are there any statics or globals? Do all the chips used by the driver support save? Does it use the new memory banking system?



ShimaPong
MAME Fan
Reged: 03/12/05
Posts: 783
Send PM


Re: What requirement is needed to set "State Save Support" ? new [Re: Vas Crabb]
#132405 - 11/26/07 07:26 PM


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

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

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



"Any company has no power to stop people emulating"
MAME is the emulator of no giving in the pressure from any company even if they don't allow



Haze
Reged: 09/23/03
Posts: 5243
Send PM


Re: What requirement is needed to set "State Save Support" ? new [Re: ShimaPong]
#132406 - 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.


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

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