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