Unfortunately, it does depend on static initialization. In src/mame/video/vicdual.cpp can be found this hard-coded color table:
Code:
static const pen_t pens_from_color_prom[] = { rgb_t::black, rgb_t(0x00, 0xff, 0x00), rgb_t(0x00, 0x00, 0xff), rgb_t(0x00, 0xff, 0xff), rgb_t(0xff, 0x00, 0x00), rgb_t(0xff, 0xff, 0x00), rgb_t(0xff, 0x00, 0xff), rgb_t::white };
rgb_t::black, rgb_t::white and a bunch of similar variables are declared as static const in src/lib/util/palette.h.
|