aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--libretro.c15
2 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index e8620ac..7b1edbb 100644
--- a/Makefile
+++ b/Makefile
@@ -184,6 +184,7 @@ else ifeq ($(platform), ngc)
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CFLAGS += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
+ CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo Wii
@@ -192,6 +193,7 @@ else ifeq ($(platform), wii)
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
+ CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo WiiU
@@ -199,7 +201,8 @@ else ifeq ($(platform), wiiu)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
- CFLAGS += -DGEKKO -DWIIU -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
+ CFLAGS += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float -D__ppc__ -DMSB_FIRST
+ CFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
else ifeq ($(platform), emscripten)
diff --git a/libretro.c b/libretro.c
index 9e88d2c..3ccd6b8 100644
--- a/libretro.c
+++ b/libretro.c
@@ -866,21 +866,24 @@ static void init_descriptors(void)
bool retro_load_game(const struct retro_game_info* game)
{
+ struct retro_system_av_info av_info;
+ if (!game)
+ return false;
+
CPU.Flags = 0;
- init_descriptors();
- check_variables();
+ init_descriptors();
+ check_variables();
#ifdef LOAD_FROM_MEMORY_TEST
if (!LoadROM(game))
#else
- if (!LoadROM(game->path))
+ if (!LoadROM(game->path))
#endif
- return false;
+ return false;
Settings.FrameTime = (Settings.PAL ? Settings.FrameTimePAL :
- Settings.FrameTimeNTSC);
+ Settings.FrameTimeNTSC);
- struct retro_system_av_info av_info;
retro_get_system_av_info(&av_info);
#ifdef USE_BLARGG_APU