MAME
Find a file
Aaron Giles 4f7efb1ca4 Moved the state saving system to C++. For now the registration macros
are still intact. The new state_manager class has templatized methods
for saving the various types, and through template specialization can
save more complex system types cleanly (like bitmaps and attotimes).

Added new mechanism to detect proper state save types. This is much
more strict and there will likely be some games/devices that fatalerror
at startup until they are remedied. Spot checking has caught the more
common situations.

The new state_manager is embedded directly in the running_machine, 
allowing objects to register state saving in their constructors now.

Added NAME() macro which is a generalization of FUNC() and can be
used to wrap variables that are registered when directly using the
new methods as opposed to the previous macros. For example:

  machine->state().save_item(NAME(global_item))

Added methods in the device_t class that implicitly register state
against the current device, making for a cleaner interface.

Just a couple of required regexes for now:

state_save_register_postload( *)\(( *)([^,;]+), *
\3->state().register_postload\1\(\2

state_save_register_presave( *)\(( *)([^,;]+), *
\3->state().register_presave\1\(\2
2011-02-08 06:48:39 +00:00
docs Added support for OSD-generated fonts. The OSD is queried first to see 2010-10-24 00:16:54 +00:00
hash Fix for Haze's (or Kale's) lazyness ;P 2011-01-27 08:16:13 +00:00
src Moved the state saving system to C++. For now the registration macros 2011-02-08 06:48:39 +00:00
.gitattributes Move generic templates from emucore.h to emutempl.h. 2011-02-07 05:47:17 +00:00
makefile NetBSD support [Thomas Klausner] 2011-02-02 03:29:54 +00:00