From 08e35a62d42263e687438e080b0a2ca576820441 Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Wed, 11 Jan 2012 22:55:07 +0100 Subject: [PATCH] (PS3) Can now compile with SNC as well --- Makefile.ps3 | 4 ++-- ps3/main.c | 5 ++--- ssnes.c | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile.ps3 b/Makefile.ps3 index ec70236964..301494e9ff 100644 --- a/Makefile.ps3 +++ b/Makefile.ps3 @@ -25,9 +25,9 @@ else endif ifeq ($(CELL_BUILD_TOOLS),SNC) -CC = $(CELL_SDK)/sn/ps3ppusnc +CC = $(CELL_SDK)/$(HOST_DIR)/sn/bin/ps3ppusnc CXX = $(CC) -LD = $(CELL_SDK)/sn/ps3ppuld +LD = $(CELL_SDK)/$(HOST_DIR)/sn/bin/ps3ppuld else CC = $(CELL_SDK)/$(HOST_DIR)/ppu/bin/ppu-lv2-gcc CXX = $(CELL_SDK)/$(HOST_DIR)/ppu/bin/ppu-lv2-g++ diff --git a/ps3/main.c b/ps3/main.c index bf101e051b..e6f24ba8e8 100644 --- a/ps3/main.c +++ b/ps3/main.c @@ -27,6 +27,8 @@ #include #include +#include "ps3_input.h" + #include "../conf/config_file.h" #include "../general.h" #include "menu.h" @@ -100,14 +102,11 @@ static bool file_exists(const char * filename) static void emulator_init_settings(void) { - bool config_file_newly_created = false; - if(!file_exists(SYS_CONFIG_FILE)) { FILE * f; f = fopen(SYS_CONFIG_FILE, "w"); fclose(f); - config_file_newly_created = true; } config_file_t * currentconfig = config_file_new(SYS_CONFIG_FILE); diff --git a/ssnes.c b/ssnes.c index 41e5927aa8..3fafdfb594 100644 --- a/ssnes.c +++ b/ssnes.c @@ -435,6 +435,8 @@ static void print_compiler(FILE *file) fprintf(file, "\nCompiler: "); #if defined(_MSC_VER) fprintf(file, "MSVC (%d) %u-bit\n", _MSC_VER, (unsigned)(CHAR_BIT * sizeof(size_t))); +#elif defined(__SNC__) + fprintf(file, "SNC %u-bit\n", (unsigned)(CHAR_BIT * sizeof(size_t))); #elif defined(_WIN32) && defined(__GNUC__) fprintf(file, "MinGW (%d.%d.%d) %u-bit\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__, (unsigned)(CHAR_BIT * sizeof(size_t)));