revive pandora and win32 builds, rm gp2x dep for linux, lots of refactoring
[libpicofe.git] / win32 / plat.c
index 0c1dea6..2770b94 100644 (file)
@@ -41,7 +41,7 @@ void plat_wait_till_us(unsigned int us)
 {
        int msdiff = (int)(us - plat_get_ticks_us()) / 1000;
        if (msdiff > 6)
-;//            Sleep(msdiff - 6);
+               Sleep(msdiff - 6);
        while (plat_get_ticks_us() < us)
                ;
 }
@@ -59,18 +59,15 @@ int plat_wait_event(int *fds_hnds, int count, int timeout_ms)
 void pemu_prep_defconfig(void)
 {
        memset(&defaultConfig, 0, sizeof(defaultConfig));
-       defaultConfig.EmuOpt    = 0x9d | EOPT_RAM_TIMINGS|EOPT_CONFIRM_SAVE|EOPT_EN_CD_LEDS;
-       defaultConfig.s_PicoOpt = POPT_EN_STEREO|POPT_EN_FM|POPT_EN_PSG|POPT_EN_Z80 |
-                                 POPT_EN_MCD_PCM|POPT_EN_MCD_CDDA|POPT_ACC_SPRITES |
-                                 POPT_EN_32X|POPT_EN_PWM;
        defaultConfig.s_PicoOpt|= POPT_6BTN_PAD; // for xmen proto
-       defaultConfig.s_PsndRate = 44100;
-       defaultConfig.s_PicoRegion = 0; // auto
-       defaultConfig.s_PicoAutoRgnOrder = 0x184; // US, EU, JP
        defaultConfig.s_PicoCDBuffers = 0;
        defaultConfig.Frameskip = 0;
 }
 
+void pemu_validate_config(void)
+{
+}
+
 static int EmuScanBegin16(unsigned int num)
 {
        DrawLineDest = (unsigned short *) g_screen_ptr + g_screen_width * num;
@@ -200,10 +197,6 @@ void plat_video_menu_end(void)
 {
 }
 
-void plat_validate_config(void)
-{
-}
-
 void plat_update_volume(int has_changed, int is_up)
 {
 }
@@ -216,7 +209,7 @@ const char *plat_get_credits(void)
                "Chui: Fame/C\n"
                "NJ: CZ80\n"
                "MAME devs: YM2612, SN76496 and SH2 cores\n"
-               "Stéphane Dallongeville: base of Fame/C (C68K), CZ80\n\n"
+               "Stéphane Dallongeville: base of Fame/C (C68K), CZ80\n\n"
                "Special thanks (ideas, valuable information and stuff):\n"
                "Charles MacDonald, Eke, Exophase, Haze, Lordus, Nemesis,\n"
                "Pierpaolo Prazzoli, Rokas, Steve Snake, Tasco Deluxe.\n";