Previous 199869 Revisions Next

r26793 Saturday 28th December, 2013 at 14:57:22 UTC by Couriersud
Netlist, make some class variables protected. No wn
[src/emu/machine]netlist.c
[src/emu/netlist]nl_base.h
[src/osd/sdl]sdl.mak
[src/osd/windows]windows.mak

trunk/src/osd/windows/windows.mak
r26792r26793
290290
291291ifeq ($(DIRECTINPUT),8)
292292LIBS += -ldinput8
293CCOMFLAGS += -DDIRECTINPUT_VERSION=0x0800
293CCOMFLAGS += -DDIRECTINPUT_VERSION=0x0800 -Idirectx
294294else
295295LIBS += -ldinput
296CCOMFLAGS += -DDIRECTINPUT_VERSION=0x0700
296CCOMFLAGS += -DDIRECTINPUT_VERSION=0x0700 -Idirectx
297297endif
298298
299299LIBS += -lcomdlg32
trunk/src/osd/sdl/sdl.mak
r26792r26793
5959# active development on sdlmame or SDL.
6060
6161# uncomment the next line to compile and link against SDL2.0
62# SDL_LIBVER = sdl2
62SDL_LIBVER = sdl2
6363
6464# uncomment the next line to use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)
6565# SDL2_MULTIAPI = 1
6666
6767# uncomment the next line to specify where you have installed
6868# SDL. Equivalent to the ./configure --prefix=<path>
69# SDL_INSTALL_ROOT = /usr/local/sdl13
69SDL_INSTALL_ROOT = /usr/local/sdl20
7070
7171# uncomment to disable the Qt debugger (on non-OSX this disables all debugging)
7272# NO_USE_QTDEBUG = 1
Property changes on: trunk/src/osd
Added: svn:ignore
   + winui

trunk/src/emu/machine/netlist.c
r26792r26793
200200      netlist_net_t *n = m_netlist->m_nets[i];
201201      if (n->isRailNet())
202202      {
203         state_add(i*2, n->name(), n->m_cur.Q);
203         state_add(i*2, n->name(), n->Q_state_ptr());
204204      }
205205      else
206206      {
207         state_add(i*2+1, n->name(), n->m_cur.Analog).formatstr("%20s");
207         state_add(i*2+1, n->name(), n->Q_Analog_state_ptr()).formatstr("%20s");
208208      }
209209   }
210210
trunk/src/emu/netlist/nl_base.h
r26792r26793
581581   ATTR_HOT inline void push_to_queue(const netlist_time &delay);
582582   ATTR_HOT bool is_queued() { return m_in_queue == 1; }
583583
584   /* internal state support
585    * FIXME: get rid of this and implement export/import in MAME
586    */
587    ATTR_COLD inline netlist_sig_t &Q_state_ptr()
588    {
589        assert(family() == LOGIC);
590        return m_cur.Q;
591    }
592
593    ATTR_COLD inline double &Q_Analog_state_ptr()
594    {
595        //assert(object_type(SIGNAL_MASK) == SIGNAL_ANALOG);
596        assert(family() == ANALOG);
597        return m_cur.Analog;
598    }
599
584600   // m_terms is only used by analog subsystem
585601   typedef netlist_list_t<netlist_terminal_t *> terminal_list_t;
586602
r26792r26793
589605
590606   netlist_core_terminal_t *m_head;
591607
592// the following three must be public for mame support
593//protected:
594
595   hybrid_t m_last;
596   hybrid_t m_cur;
597   hybrid_t m_new;
598
599608    /* use this to register state.... */
600609    ATTR_COLD virtual void late_save_register()
601610    {
r26792r26793
612621    }
613622
614623protected:
615   UINT32 m_num_cons;
616624
625    UINT32 m_num_cons;
626
627   hybrid_t m_last;
628   hybrid_t m_cur;
629   hybrid_t m_new;
630
617631   /* we don't use this to save state
618632    * because we may get deleted again ...
619633    */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team