diff --git a/Makefile.ps3.salamander b/Makefile.ps3.salamander index aa28346a1c..8cf308fd70 100644 --- a/Makefile.ps3.salamander +++ b/Makefile.ps3.salamander @@ -17,7 +17,7 @@ MOVE = mv C = $(CELL_HOST_PATH)/ppu/bin/ppu-lv2-gcc CC = $(CELL_HOST_PATH)/ppu/bin/ppu-lv2-g++ -PPU_CFLAGS += -I. -O2 -g -DHAVE_EXITSPAWN_NPDRM +PPU_CFLAGS += -I. -O2 -g PPU_SRCS = ps3/salamander/main.c strl.c conf/config_file.c ifeq ($(HAVE_LOGGER), 1) diff --git a/ps3/salamander/main.c b/ps3/salamander/main.c index 26edac8a3f..6c598c61a7 100644 --- a/ps3/salamander/main.c +++ b/ps3/salamander/main.c @@ -20,11 +20,9 @@ #include #include #include -#ifdef HAVE_EXITSPAWN_NPDRM #include #include #include -#endif #include #include #include @@ -59,9 +57,7 @@ } while (0) #endif -#ifdef HAVE_EXITSPAWN_NPDRM static uint8_t np_pool[NP_POOL_SIZE]; -#endif char contentInfoPath[MAX_PATH_LENGTH]; char usrDirPath[MAX_PATH_LENGTH]; char LIBSNES_DIR_PATH[MAX_PATH_LENGTH]; @@ -274,34 +270,24 @@ static void get_environment_settings (void) int main(int argc, char *argv[]) { CellPadData pad_data; -#ifdef HAVE_EXITSPAWN_NPDRM char spawn_data[256], spawn_data_size[16]; SceNpDrmKey * k_licensee = NULL; -#endif int ret; cellSysmoduleLoadModule(CELL_SYSMODULE_IO); cellSysmoduleLoadModule(CELL_SYSMODULE_FS); cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME); -#if defined(HAVE_EXITSPAWN_NPDRM) || defined(HAVE_LOGGER) cellSysmoduleLoadModule(CELL_SYSMODULE_NET); -#endif -#ifdef HAVE_EXITSPAWN_NPDRM cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_NP); -#endif -#if defined(HAVE_EXITSPAWN_NPDRM) || defined(HAVE_LOGGER) sys_net_initialize_network(); -#endif #ifdef HAVE_LOGGER logger_init(); #endif -#ifdef HAVE_EXITSPAWN_NPDRM sceNpInit(NP_POOL_SIZE, np_pool); -#endif get_environment_settings(); @@ -327,7 +313,6 @@ int main(int argc, char *argv[]) logger_shutdown(); #endif -#ifdef HAVE_EXITSPAWN_NPDRM for(unsigned int i = 0; i < sizeof(spawn_data); ++i) spawn_data[i] = i & 0xff; @@ -349,21 +334,12 @@ int main(int argc, char *argv[]) } sceNpTerm(); -#else - sys_game_process_exitspawn2((char*)libsnes_path, NULL, NULL, NULL, 0, 1000, SYS_PROCESS_PRIMARY_STACK_SIZE_1M); -#endif -#if defined(HAVE_EXITSPAWN_NPDRM) || defined(HAVE_LOGGER) sys_net_finalize_network(); -#endif -#ifdef HAVE_EXITSPAWN_NPDRM cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_NP); -#endif -#if defined(HAVE_EXITSPAWN_NPDRM) || defined(HAVE_LOGGER) cellSysmoduleUnloadModule(CELL_SYSMODULE_NET); -#endif cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_GAME); cellSysmoduleLoadModule(CELL_SYSMODULE_FS); cellSysmoduleLoadModule(CELL_SYSMODULE_IO);