summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authornotaz2011-09-03 00:55:13 +0300
committernotaz2011-09-03 01:01:17 +0300
commitee0a3871f9982215361cd6bb4758eb9a7c7d8413 (patch)
tree6fc70e291e80ac7cda7c7438cb48ca0b89a7879d /main.c
parentd5e0983c10e0ca717603dd1a406ff0d6e450e905 (diff)
downloadpicogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.tar.gz
picogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.tar.bz2
picogpsp-ee0a3871f9982215361cd6bb4758eb9a7c7d8413.zip
get rid of GP2X_BUILD checks where they are not really needed
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.c b/main.c
index 85ef978..bd66c06 100644
--- a/main.c
+++ b/main.c
@@ -41,13 +41,13 @@ debug_state current_debug_state = RUN;
frameskip_type current_frameskip_type = auto_frameskip;
u32 global_cycles_per_instruction = 1;
u32 random_skip = 0;
+u32 fps_debug = 0;
#ifdef GP2X_BUILD
u32 frameskip_value = 2;
u64 frame_count_initial_timestamp = 0;
u64 last_frame_interval_timestamp;
-u32 gp2x_fps_debug = 0;
void gp2x_init(void);
void gp2x_quit(void);
@@ -197,8 +197,6 @@ int main(int argc, char *argv[])
sceKernelRegisterSubIntrHandler(PSP_VBLANK_INT, 0,
vblank_interrupt_handler, NULL);
sceKernelEnableSubIntr(PSP_VBLANK_INT, 0);
-#elif !defined(GP2X_BUILD)
- freopen("CON", "wb", stdout);
#endif
extern char *cpu_mode_names[];
@@ -613,7 +611,7 @@ u32 update_gba()
update_gbc_sound(cpu_ticks);
- if(gp2x_fps_debug)
+ if(fps_debug)
{
char print_buffer[32];
sprintf(print_buffer, "%d (%d)", fps, frames_drawn);