Commit ea4e66ec authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add PS3 targets / silence some warnings

parent 97762aee
......@@ -62,6 +62,36 @@ else ifeq ($(platform), emscripten)
TARGET := $(TARGET_NAME)_libretro_emscripten.so
fpic := -fPIC
SHARED := -shared -Wl,--no-undefined
# PS3
else ifeq ($(platform), ps3)
TARGET := $(TARGET_NAME)_libretro_ps3.a
CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
CC_AS = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
# sncps3
else ifeq ($(platform), sncps3)
TARGET := $(TARGET_NAME)_libretro_ps3.a
CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
CC_AS = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
# Lightweight PS3 Homebrew SDK
else ifeq ($(platform), psl1ght)
TARGET := $(TARGET_NAME)_libretro_psl1ght.a
CC = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
CC_AS = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
CXX = $(PS3DEV)/ppu/bin/ppu-g++$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_psp1.a
CC = psp-gcc$(EXE_EXT)
......@@ -69,7 +99,7 @@ else ifeq ($(platform), psp1)
AR = psp-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPSP -G0
STATIC_LINKING = 1
else CC = gcc
else
TARGET := $(TARGET_NAME)_libretro.dll
SHARED := -shared -static-libgcc -static-libstdc++ -Wl,--no-undefined -s
endif
......@@ -85,7 +115,7 @@ CORE_DIR := .
include Makefile.common
OBJECTS := $(SOURCES_C:.c=.o)
CFLAGS += -Wall -pedantic $(fpic) $(PLATFORM_DEFINES)
CFLAGS += $(fpic) $(PLATFORM_DEFINES)
CFLAGS +=
LFLAGS :=
......
......@@ -328,8 +328,10 @@ static void init_static_surface(void)
void game_init(void)
{
unsigned int t = (unsigned int)time(NULL);
frame_buf = calloc(SCREEN_HEIGHT, SCREEN_PITCH);
srand(time(NULL));
srand(t);
initgraph();
......
......@@ -217,7 +217,6 @@ static bool move_tiles(void)
break;
default:
return false;
break;
}
col_begin = 0;
......
......@@ -10,8 +10,12 @@
retro_log_printf_t log_cb;
retro_video_refresh_t video_cb;
#if 0
static retro_audio_sample_t audio_cb;
static retro_audio_sample_batch_t audio_batch_cb;
#endif
retro_environment_t environ_cb;
static retro_input_poll_t input_poll_cb;
static retro_input_state_t input_state_cb;
......@@ -158,12 +162,16 @@ void retro_set_environment(retro_environment_t cb)
void retro_set_audio_sample(retro_audio_sample_t cb)
{
#if 0
audio_cb = cb;
#endif
}
void retro_set_audio_sample_batch(retro_audio_sample_batch_t cb)
{
#if 0
audio_batch_cb = cb;
#endif
}
void retro_set_input_poll(retro_input_poll_t cb)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment