Diff for /np2/pccore.c between versions 1.108 and 1.110

version 1.108, 2007/11/11 12:46:06 version 1.110, 2011/01/15 05:33:07
Line 189  static void pccore_set(const NP2CFG *pCo Line 189  static void pccore_set(const NP2CFG *pCo
 // --------------------------------------------------------------------------  // --------------------------------------------------------------------------
   
 #if !defined(DISABLE_SOUND)  #if !defined(DISABLE_SOUND)
 static void sound_init()  static void sound_init(void)
 {  {
         UINT    rate;          UINT    rate;
   
Line 247  void pccore_init(void) { Line 247  void pccore_init(void) {
         fddfile_initialize();          fddfile_initialize();
   
 #if !defined(DISABLE_SOUND)  #if !defined(DISABLE_SOUND)
         sound_init(&np2cfg);          sound_init();
 #endif  #endif
   
         rs232c_construct();          rs232c_construct();
Line 294  void pccore_cfgupdate(void) { Line 294  void pccore_cfgupdate(void) {
         int             i;          int             i;
   
         renewal = FALSE;          renewal = FALSE;
         for (i=0; i<8; i++) {          for (i=0; i<8; i++)
                 if (np2cfg.memsw[i] != mem[MEMX_MSW + i*4]) {          {
                   if (np2cfg.memsw[i] != mem[MEMX_MSW + i*4])
                   {
                         np2cfg.memsw[i] = mem[MEMX_MSW + i*4];                          np2cfg.memsw[i] = mem[MEMX_MSW + i*4];
                         renewal = TRUE;                          renewal = TRUE;
                 }                  }
         }          }
           for (i=0; i<3; i++)
           {
                   if (np2cfg.dipsw[i] != pccore.dipsw[i])
                   {
                           np2cfg.dipsw[i] = pccore.dipsw[i];
                           renewal = TRUE;
                   }
           }
         if (renewal) {          if (renewal) {
                 sysmng_update(SYS_UPDATECFG);                  sysmng_update(SYS_UPDATECFG);
         }          }
Line 314  void pccore_reset(void) { Line 324  void pccore_reset(void) {
         if (soundrenewal) {          if (soundrenewal) {
                 soundrenewal = 0;                  soundrenewal = 0;
                 sound_term();                  sound_term();
                 sound_init(&np2cfg);                  sound_init();
         }          }
 #endif  #endif
         ZeroMemory(mem, 0x110000);          ZeroMemory(mem, 0x110000);
Line 335  void pccore_reset(void) { Line 345  void pccore_reset(void) {
         CPU_SETEXTSIZE((UINT32)pccore.extmem);          CPU_SETEXTSIZE((UINT32)pccore.extmem);
   
         CPU_TYPE = 0;          CPU_TYPE = 0;
         if (np2cfg.dipsw[2] & 0x80) {          if (pccore.dipsw[2] & 0x80) {
                 CPU_TYPE = CPUTYPE_V30;                  CPU_TYPE = CPUTYPE_V30;
         }          }
         if (pccore.model & PCMODEL_EPSON) {                     // RAM ctrl          if (pccore.model & PCMODEL_EPSON) {                     // RAM ctrl

Removed from v.1.108  
changed lines
  Added in v.1.110


RetroPC.NET-CVS <cvs@retropc.net>