mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 15:27:41 +00:00
(PS3) Made HAVE_SYSUTILS and HAVE_SYSMODULES defines for PS3 port
This commit is contained in:
parent
c986eb3491
commit
1b4cb55846
@ -68,7 +68,7 @@ endif
|
||||
|
||||
PPU_LDLIBS = -ldbgfont $(GL_LIBS) -lretro -lcgc -lgcm_cmd -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
|
||||
|
||||
DEFINES += -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_CG -DHAVE_FILEBROWSER -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
DEFINES += -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_CG -DHAVE_FILEBROWSER -DHAVE_FBO -DHAVE_RARCH_MAIN_WRAP -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RGL -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -D__CELLOS_LV2__ -DHAVE_CONFIGFILE=1 -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_GRIFFIN=1 -DPACKAGE_VERSION=\"$(RARCH_VERSION)\" -Dmain=rarch_main -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
PPU_OPTIMIZE_LV := -O0 -g
|
||||
|
21
ps3/main.c
21
ps3/main.c
@ -21,19 +21,20 @@
|
||||
|
||||
#include <sdk_version.h>
|
||||
#include <sys/process.h>
|
||||
#include <cell/sysmodule.h>
|
||||
#ifdef HAVE_SYSUTILS
|
||||
#include <sysutil/sysutil_screenshot.h>
|
||||
#include <sysutil/sysutil_common.h>
|
||||
#include <sysutil/sysutil_gamecontent.h>
|
||||
#include <sysutil/sysutil_syscache.h>
|
||||
#endif
|
||||
|
||||
#if(CELL_SDK_VERSION > 0x340000)
|
||||
#include <sysutil/sysutil_bgmplayback.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYSMODULES
|
||||
#include <cell/sysmodule.h>
|
||||
#include <sysutil/sysutil_common.h>
|
||||
#include <sys/process.h>
|
||||
#endif
|
||||
#include <netex/net.h>
|
||||
#include <np.h>
|
||||
#include <np/drm.h>
|
||||
@ -314,6 +315,7 @@ static void save_settings(void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSUTILS
|
||||
static void callback_sysutil_exit(uint64_t status, uint64_t param, void *userdata)
|
||||
{
|
||||
(void) param;
|
||||
@ -336,6 +338,7 @@ static void callback_sysutil_exit(uint64_t status, uint64_t param, void *userdat
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void get_environment_settings(int argc, char *argv[])
|
||||
{
|
||||
@ -443,9 +446,12 @@ static void get_environment_settings(int argc, char *argv[])
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef HAVE_SYSUTILS
|
||||
RARCH_LOG("Registering system utility callback...\n");
|
||||
cellSysutilRegisterCallback(0, callback_sysutil_exit, NULL);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYSMODULES
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_IO);
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_FS);
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_GAME);
|
||||
@ -454,6 +460,7 @@ int main(int argc, char *argv[])
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_JPGDEC);
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_NET);
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_NP);
|
||||
#endif
|
||||
|
||||
sys_net_initialize_network();
|
||||
|
||||
@ -482,16 +489,22 @@ int main(int argc, char *argv[])
|
||||
#if(CELL_SDK_VERSION > 0x340000)
|
||||
if (g_console.screenshots_enable)
|
||||
{
|
||||
#ifdef HAVE_SYSMODULES
|
||||
cellSysmoduleLoadModule(CELL_SYSMODULE_SYSUTIL_SCREENSHOT);
|
||||
#endif
|
||||
#ifdef HAVE_SYSUTILS
|
||||
CellScreenShotSetParam screenshot_param = {0, 0, 0, 0};
|
||||
|
||||
screenshot_param.photo_title = "RetroArch PS3";
|
||||
screenshot_param.game_title = "RetroArch PS3";
|
||||
cellScreenShotSetParameter (&screenshot_param);
|
||||
cellScreenShotEnable();
|
||||
#endif
|
||||
}
|
||||
#ifdef HAVE_SYSUTILS
|
||||
if (g_console.custom_bgm_enable)
|
||||
cellSysutilEnableBgmPlayback();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ps3graphics_video_init(true);
|
||||
@ -552,12 +565,14 @@ begin_shutdown:
|
||||
logger_shutdown();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYSMODULES
|
||||
if(g_console.screenshots_enable)
|
||||
cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_SCREENSHOT);
|
||||
cellSysmoduleUnloadModule(CELL_SYSMODULE_JPGDEC);
|
||||
cellSysmoduleUnloadModule(CELL_SYSMODULE_PNGDEC);
|
||||
cellSysmoduleUnloadModule(CELL_SYSMODULE_AVCONF_EXT);
|
||||
cellSysmoduleUnloadModule(CELL_SYSMODULE_SYSUTIL_GAME);
|
||||
#endif
|
||||
|
||||
int ret = cellSysCacheClear();
|
||||
|
||||
|
@ -954,7 +954,9 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||
static bool gl_alive(void *data)
|
||||
{
|
||||
(void)data;
|
||||
#ifdef HAVE_SYSUTILS
|
||||
cellSysutilCheckCallback();
|
||||
#endif
|
||||
return !g_quitting;
|
||||
}
|
||||
|
||||
@ -975,7 +977,9 @@ static void ps3graphics_swap(void * data)
|
||||
{
|
||||
(void)data;
|
||||
psglSwap();
|
||||
#ifdef HAVE_SYSUTILS
|
||||
cellSysutilCheckCallback();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void ps3graphics_set_aspect_ratio(void * data, uint32_t aspectratio_index)
|
||||
|
Loading…
Reference in New Issue
Block a user