-#else
- gp2x_init (1000, 8, SOUND_RATE, 16, 1, 60);
-
- if(SDL_Init(0))
- {
- printf("Could not initialize SDL: %s.\n", SDL_GetError());
- return(-1);
- }
- SetDefaults();
-
- #ifdef BROKEN
- if(getenv("SDL_VIDEODRIVER"))
- {
- if((_fshacksave=malloc(strlen(getenv("SDL_VIDEODRIVER"))+1)))
- strcpy(_fshacksave,getenv("SDL_VIDEODRIVER"));
- }
- else
- _fshacksave=0;
- #endif
-
- {
- int ret=CLImain(argc,argv);
- SDL_Quit();
- // make sure sound thread has exited cleanly
- while (gp2x_in_sound_thread) pthread_yield();
- printf("Sound thread exited\n");
- printf("Exiting main(). terminated");
- return(ret);
- }
-#endif