From 89e55e9902195a59d1404250b05b3eca7aba1142 Mon Sep 17 00:00:00 2001 From: bmaupin Date: Thu, 19 Sep 2019 12:48:21 -0400 Subject: Reenable native file IO on PSP --- common.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 8b1df6b..5d52981 100644 --- a/common.h +++ b/common.h @@ -49,7 +49,7 @@ // Huge thanks to pollux for the heads up on using native file I/O // functions on PSP for vastly improved memstick performance. -#ifdef PSP_BUILD +#ifdef PSP #define fastcall #include @@ -90,12 +90,6 @@ #include #else -#define GBA_SCREEN_WIDTH (240) -#define GBA_SCREEN_HEIGHT (160) -#define GBA_SCREEN_PITCH (240) - -void switch_to_main_thread(void); - typedef unsigned char u8; typedef signed char s8; typedef unsigned short int u16; @@ -133,6 +127,12 @@ void switch_to_main_thread(void); #endif +#define GBA_SCREEN_WIDTH (240) +#define GBA_SCREEN_HEIGHT (160) +#define GBA_SCREEN_PITCH (240) + +void switch_to_main_thread(void); + // These must be variables, not constants. #define file_read_variable(filename_tag, variable) \ -- cgit v1.2.3