|
|
| version 1.68, 2004/02/16 05:11:38 | version 1.70, 2004/02/18 21:58:41 |
|---|---|
| Line 34 | Line 34 |
| #include "np2ver.h" | #include "np2ver.h" |
| #include "calendar.h" | #include "calendar.h" |
| #include "timing.h" | #include "timing.h" |
| #include "keystat.h" | |
| #include "debugsub.h" | #include "debugsub.h" |
| Line 175 static void sound_init(void) { | Line 176 static void sound_init(void) { |
| rate = 0; | rate = 0; |
| } | } |
| sound_create(rate, np2cfg.delayms); | sound_create(rate, np2cfg.delayms); |
| #if defined(SUPPORT_WAVEMIX) | fddmtrsnd_initialize(rate); |
| wavemix_initialize(rate); | |
| #endif | |
| beep_initialize(rate); | beep_initialize(rate); |
| beep_setvol(np2cfg.BEEP_VOL); | beep_setvol(np2cfg.BEEP_VOL); |
| tms3631_initialize(rate); | tms3631_initialize(rate); |
| Line 198 static void sound_init(void) { | Line 197 static void sound_init(void) { |
| static void sound_term(void) { | static void sound_term(void) { |
| soundmng_stop(); | soundmng_stop(); |
| #if defined(SUPPORT_WAVEMIX) | |
| wavemix_deinitialize(); | |
| #endif | |
| rhythm_deinitialize(); | rhythm_deinitialize(); |
| fddmtrsnd_deinitialize(); | |
| sound_destroy(); | sound_destroy(); |
| } | } |
| Line 212 void pccore_init(void) { | Line 209 void pccore_init(void) { |
| pal_initlcdtable(); | pal_initlcdtable(); |
| pal_makelcdpal(); | pal_makelcdpal(); |
| pal_makeskiptable(); | pal_makeskiptable(); |
| dispsync_init(); | dispsync_initialize(); |
| sxsi_initialize(); | sxsi_initialize(); |
| font_init(); | font_initialize(); |
| font_load(np2cfg.fontfile, TRUE); | font_load(np2cfg.fontfile, TRUE); |
| maketext_init(); | maketext_initialize(); |
| makegrph_init(); | makegrph_initialize(); |
| gdcsub_init(); | gdcsub_initialize(); |
| fddfile_init(); | fddfile_initialize(); |
| sound_init(); | sound_init(); |
| Line 299 void pccore_reset(void) { | Line 296 void pccore_reset(void) { |
| } | } |
| pccore_set(); | pccore_set(); |
| nevent_init(); | nevent_allreset(); |
| CPU_RESET(); | CPU_RESET(); |
| CPU_SETEXTSIZE((UINT32)pccore.extmem); | CPU_SETEXTSIZE((UINT32)pccore.extmem); |
| Line 331 void pccore_reset(void) { | Line 328 void pccore_reset(void) { |
| sound_changeclock(); | sound_changeclock(); |
| beep_changeclock(); | beep_changeclock(); |
| sound_reset(); | sound_reset(); |
| #if defined(SUPPORT_WAVEMIX) | fddmtrsnd_bind(); |
| wavemix_bind(); | |
| #endif | |
| fddfile_reset2dmode(); | fddfile_reset2dmode(); |
| bios0x18_16(0x20, 0xe1); | bios0x18_16(0x20, 0xe1); |
| Line 348 void pccore_reset(void) { | Line 343 void pccore_reset(void) { |
| cbuscore_bind(); | cbuscore_bind(); |
| fmboard_bind(); | fmboard_bind(); |
| fddmtr_init(); | fddmtr_initialize(); |
| calendar_init(); | calendar_initialize(); |
| vram_init(); | vram_initialize(); |
| pal_change(1); | pal_change(1); |
| bios_init(); | bios_initialize(); |
| if (np2cfg.ITF_WORK) { | if (np2cfg.ITF_WORK) { |
| CS_BASE = 0xf0000; | CS_BASE = 0xf0000; |
| Line 593 UINT cflg; | Line 588 UINT cflg; |
| void pccore_exec(BOOL draw) { | void pccore_exec(BOOL draw) { |
| drawframe = draw; | drawframe = draw; |
| keyext_flash(); | keystat_sync(); |
| soundmng_sync(); | soundmng_sync(); |
| mouseif_sync(); | mouseif_sync(); |
| pal_eventclear(); | pal_eventclear(); |