X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=main.c;h=ac891cb8edd49608c740e655493bc0d5cdd2ca6e;hb=90206450327a222607119b04f34cf1853faf37f8;hp=1f076c8bb217713e17a83b7d6e5185559f3df93f;hpb=2823a4c8196a02da86ee180cf55586d4e8c91a2f;p=gpsp.git diff --git a/main.c b/main.c index 1f076c8..ac891cb 100644 --- a/main.c +++ b/main.c @@ -84,7 +84,11 @@ u32 oam_update_count = 0; u32 synchronize_flag = 1; u32 update_backup_flag = 1; +#ifdef GP2X_BUILD +u32 clock_speed = 200; +#else u32 clock_speed = 333; +#endif u8 main_path[512]; void trigger_ext_event(); @@ -351,7 +355,7 @@ int main(int argc, char *argv[]) current_savestate_filename); load_state(current_savestate_filename); */ - debug_on(); +// debug_on(); if(argc > 2) { @@ -1008,7 +1012,8 @@ void get_ticks_us(u64 *ticks_return) void delay_us(u32 us_count) { - usleep(us_count); + //usleep(us_count); + SDL_Delay(us_count / 1000); } void get_ticks_us(u64 *ticks_return)