mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
![]() > To: submit@mamedev.org > CC: atariace@hotmail.com > Subject: [patch] Eliminate more .data > Date: Wed, 7 Oct 2009 08:51:56 -0700 > > Hi mamedev, > > Most variables in .data are likely to lead to multisession bugs, so it > is best to eliminate them and add explicit init/reset code for them > instead. This patch does that for almost all the cases, with a few > changes deserving some comments: > > z180: cc was global when it should be per-cpu. > nesapu: the noise table would be different run to run in multisession > which probably wasn't intended. > astring: i constified the dummy string to make it impossible to > modify. > mediagx: hits was separated from the constant data > tecmosys: i reduced the number of exports and renamed them to use > tecmosys_ as a prefix. > atari: i moved the renderer function into ANTIC. > naomibd: the array provided to x76f100 was too small and might have > caused memory corruption. > n64: i constified the one and zero colors, requiring many more const > qualifiers to be added. > ldverify: i encapsulated the audio and video variables to reduce the > amount of global state. |
||
---|---|---|
docs | ||
src | ||
.gitattributes | ||
makefile |