X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Fgp2x.c;fp=drivers%2Fgp2x%2Fsdl.c;h=0f3b9aa7dc68d5dc90c5d67bd966de9f127d00ae;hp=7826c8c6e7bb7ade1b705775180756d9bf118ebb;hb=22f08d9598e12f15de5e3c2f503c2ad1298dcc17;hpb=9a079c3760813dd9715edab1c7ebc5d43b385bef diff --git a/drivers/gp2x/sdl.c b/drivers/gp2x/gp2x.c similarity index 95% rename from drivers/gp2x/sdl.c rename to drivers/gp2x/gp2x.c index 7826c8c..0f3b9aa 100644 --- a/drivers/gp2x/sdl.c +++ b/drivers/gp2x/gp2x.c @@ -1,18 +1,15 @@ #include #include #include -#include -#include "sdl.h" -#include "sdl-video.h" +#include "gp2x.h" +#include "gp2x-video.h" #ifdef NETWORK #include "unix-netplay.h" #endif #include "minimal.h" -//extern int soundvol; + int CLImain(int argc, char *argv[]); -extern int gp2x_in_sound_thread; -extern void pthread_yield(void); extern void SetVideoScaling(int, int, int); //#define SOUND_RATE 44100 @@ -229,8 +226,6 @@ int main(int argc, char *argv[]) gp2x_deinit(); // make sure sound thread has exited cleanly - while (gp2x_in_sound_thread) pthread_yield(); - printf("Sound thread exited\n"); printf("Exiting main(). terminated"); if (showfps && swapbuttons) {