2012-11-24 04:23:20 +01:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2015-01-07 17:46:50 +01:00
|
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
2012-11-24 04:23:20 +01:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-09-01 12:10:26 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
#include <psp2/moduleinfo.h>
|
|
|
|
#include <psp2/power.h>
|
2015-09-14 03:50:34 +02:00
|
|
|
|
|
|
|
int scePowerSetArmClockFrequency(int freq);
|
2015-09-02 13:07:13 +02:00
|
|
|
#else
|
2012-11-24 04:23:20 +01:00
|
|
|
#include <pspkernel.h>
|
|
|
|
#include <pspdebug.h>
|
2014-02-17 14:26:03 +01:00
|
|
|
#include <pspfpu.h>
|
2014-02-18 18:43:23 +01:00
|
|
|
#include <psppower.h>
|
2014-06-04 01:35:26 +01:00
|
|
|
#include <pspsdk.h>
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
|
2015-09-15 04:49:10 +02:00
|
|
|
#include <boolean.h>
|
2015-09-01 12:10:26 +02:00
|
|
|
#include <retro_log.h>
|
2014-10-22 00:23:06 +02:00
|
|
|
#include <file/file_path.h>
|
2015-06-15 22:45:02 +02:00
|
|
|
#ifndef IS_SALAMANDER
|
|
|
|
#include <file/file_list.h>
|
|
|
|
#endif
|
|
|
|
|
2015-08-10 23:11:40 +02:00
|
|
|
#include "../../defines/psp_defines.h"
|
2014-06-23 04:48:05 +02:00
|
|
|
#include "../../general.h"
|
2014-06-05 00:17:37 +01:00
|
|
|
|
2015-08-30 19:46:19 +02:00
|
|
|
#if defined(HAVE_KERNEL_PRX) || defined(IS_SALAMANDER)
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2015-09-20 15:33:54 +02:00
|
|
|
#include "../../bootstrap/psp1/kernel_functions.h"
|
2014-06-05 00:17:37 +01:00
|
|
|
#endif
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
PSP2_MODULE_INFO(0, 0, "RetroArch");
|
2015-09-20 13:07:12 +02:00
|
|
|
int _newlib_heap_size_user = 64 * 1024 * 1024;
|
2015-09-02 13:07:13 +02:00
|
|
|
#else
|
2015-08-12 12:33:27 +02:00
|
|
|
PSP_MODULE_INFO("RetroArch", 0, 1, 1);
|
2014-03-08 15:46:59 +01:00
|
|
|
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER|THREAD_ATTR_VFPU);
|
2014-06-29 05:45:36 +01:00
|
|
|
#ifdef BIG_STACK
|
|
|
|
PSP_MAIN_THREAD_STACK_SIZE_KB(4*1024);
|
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
PSP_HEAP_SIZE_MAX();
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
|
2014-06-05 00:17:37 +01:00
|
|
|
char eboot_path[512];
|
|
|
|
|
2014-10-02 21:39:29 +02:00
|
|
|
static bool exit_spawn = false;
|
|
|
|
static bool exitspawn_start_game = false;
|
|
|
|
|
2014-06-05 00:17:37 +01:00
|
|
|
#ifdef IS_SALAMANDER
|
|
|
|
#include "../../file_ext.h"
|
|
|
|
#endif
|
|
|
|
|
2014-06-03 03:35:12 +02:00
|
|
|
static void frontend_psp_get_environment_settings(int *argc, char *argv[],
|
|
|
|
void *args, void *params_data)
|
2012-11-24 04:23:20 +01:00
|
|
|
{
|
2015-09-02 13:07:13 +02:00
|
|
|
struct rarch_main_wrap *params = NULL;
|
|
|
|
|
2014-02-11 16:10:40 +01:00
|
|
|
(void)args;
|
2015-09-02 13:07:13 +02:00
|
|
|
|
2013-08-10 20:59:10 +02:00
|
|
|
#ifndef IS_SALAMANDER
|
|
|
|
#if defined(HAVE_LOGGER)
|
|
|
|
logger_init();
|
|
|
|
#elif defined(HAVE_FILE_LOGGER)
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2015-03-21 04:43:18 +01:00
|
|
|
global_t *global = global_get_ptr();
|
|
|
|
global->log_file = fopen("ms0:/retroarch-log.txt", "w");
|
2013-08-10 20:59:10 +02:00
|
|
|
#endif
|
2013-01-08 08:38:25 +01:00
|
|
|
#endif
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2013-01-08 08:38:25 +01:00
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
strlcpy(eboot_path, "cache0:/retroarch/", sizeof(eboot_path));
|
|
|
|
strlcpy(g_defaults.dir.port, eboot_path, sizeof(g_defaults.dir.port));
|
|
|
|
#else
|
2014-06-05 00:17:37 +01:00
|
|
|
strlcpy(eboot_path, argv[0], sizeof(eboot_path));
|
2015-07-27 17:18:10 +02:00
|
|
|
fill_pathname_basedir(g_defaults.dir.port, argv[0], sizeof(g_defaults.dir.port));
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2015-07-27 17:18:10 +02:00
|
|
|
RARCH_LOG("port dir: [%s]\n", g_defaults.dir.port);
|
|
|
|
|
2015-09-29 00:40:53 +02:00
|
|
|
fill_pathname_join(g_defaults.dir.core_assets, g_defaults.dir.port,
|
|
|
|
"downloads", sizeof(g_defaults.dir.core_assets));
|
2015-07-27 17:18:10 +02:00
|
|
|
fill_pathname_join(g_defaults.dir.assets, g_defaults.dir.port,
|
|
|
|
"media", sizeof(g_defaults.dir.assets));
|
|
|
|
fill_pathname_join(g_defaults.dir.core, g_defaults.dir.port,
|
|
|
|
"cores", sizeof(g_defaults.dir.core));
|
|
|
|
fill_pathname_join(g_defaults.dir.core_info, g_defaults.dir.port,
|
|
|
|
"cores", sizeof(g_defaults.dir.core_info));
|
|
|
|
fill_pathname_join(g_defaults.dir.savestate, g_defaults.dir.core,
|
|
|
|
"savestates", sizeof(g_defaults.dir.savestate));
|
|
|
|
fill_pathname_join(g_defaults.dir.sram, g_defaults.dir.core,
|
|
|
|
"savefiles", sizeof(g_defaults.dir.sram));
|
|
|
|
fill_pathname_join(g_defaults.dir.system, g_defaults.dir.core,
|
|
|
|
"system", sizeof(g_defaults.dir.system));
|
|
|
|
fill_pathname_join(g_defaults.dir.playlist, g_defaults.dir.core,
|
|
|
|
"playlists", sizeof(g_defaults.dir.playlist));
|
|
|
|
fill_pathname_join(g_defaults.path.config, g_defaults.dir.port,
|
|
|
|
"retroarch.cfg", sizeof(g_defaults.path.config));
|
2015-09-19 17:31:25 +02:00
|
|
|
fill_pathname_join(g_defaults.dir.cheats, g_defaults.dir.port,
|
2015-07-27 17:18:10 +02:00
|
|
|
"cheats", sizeof(g_defaults.dir.cheats));
|
2015-09-19 17:31:25 +02:00
|
|
|
fill_pathname_join(g_defaults.dir.remap, g_defaults.dir.port,
|
2015-07-27 17:18:10 +02:00
|
|
|
"remaps", sizeof(g_defaults.dir.remap));
|
2014-06-03 17:34:25 +02:00
|
|
|
|
2015-09-29 00:40:53 +02:00
|
|
|
#ifdef VITA
|
|
|
|
fill_pathname_join(g_defaults.dir.overlay, g_defaults.dir.core,
|
|
|
|
"overlays", sizeof(g_defaults.dir.overlay));
|
|
|
|
#endif
|
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
params = (struct rarch_main_wrap*)params_data;
|
|
|
|
params->verbose = true;
|
|
|
|
#endif
|
|
|
|
|
2015-01-12 06:51:57 +01:00
|
|
|
#ifndef IS_SALAMANDER
|
2014-06-03 17:34:25 +02:00
|
|
|
if (argv[1] && (argv[1][0] != '\0'))
|
|
|
|
{
|
2015-01-09 18:04:29 +01:00
|
|
|
static char path[PATH_MAX_LENGTH];
|
2015-01-12 06:51:57 +01:00
|
|
|
struct rarch_main_wrap *args = NULL;
|
|
|
|
|
2014-06-13 18:11:08 +02:00
|
|
|
*path = '\0';
|
2015-01-12 06:51:57 +01:00
|
|
|
args = (struct rarch_main_wrap*)params_data;
|
2014-06-03 17:34:25 +02:00
|
|
|
|
|
|
|
if (args)
|
|
|
|
{
|
|
|
|
strlcpy(path, argv[1], sizeof(path));
|
|
|
|
|
|
|
|
args->touched = true;
|
2014-07-28 19:55:28 +02:00
|
|
|
args->no_content = false;
|
2014-06-03 17:34:25 +02:00
|
|
|
args->verbose = false;
|
|
|
|
args->config_path = NULL;
|
|
|
|
args->sram_path = NULL;
|
|
|
|
args->state_path = NULL;
|
2014-07-28 19:55:28 +02:00
|
|
|
args->content_path = path;
|
2014-06-03 17:34:25 +02:00
|
|
|
args->libretro_path = NULL;
|
|
|
|
|
|
|
|
RARCH_LOG("argv[0]: %s\n", argv[0]);
|
|
|
|
RARCH_LOG("argv[1]: %s\n", argv[1]);
|
|
|
|
RARCH_LOG("argv[2]: %s\n", argv[2]);
|
|
|
|
|
|
|
|
RARCH_LOG("Auto-start game %s.\n", argv[1]);
|
|
|
|
}
|
|
|
|
}
|
2015-01-12 06:51:57 +01:00
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
}
|
|
|
|
|
2014-06-05 00:17:37 +01:00
|
|
|
static void frontend_psp_deinit(void *data)
|
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
#ifndef IS_SALAMANDER
|
2015-11-22 21:55:06 +01:00
|
|
|
bool *verbose = retro_main_verbosity();
|
2015-03-21 04:43:18 +01:00
|
|
|
global_t *global = global_get_ptr();
|
2015-11-22 21:55:06 +01:00
|
|
|
|
|
|
|
*verbose = false;
|
2014-06-05 00:17:37 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_FILE_LOGGER
|
2015-03-21 04:43:18 +01:00
|
|
|
if (global->log_file)
|
|
|
|
fclose(global->log_file);
|
|
|
|
global->log_file = NULL;
|
2014-06-05 00:17:37 +01:00
|
|
|
#endif
|
2014-06-06 04:14:02 +01:00
|
|
|
|
|
|
|
#endif
|
2014-06-05 00:17:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static void frontend_psp_shutdown(bool unused)
|
|
|
|
{
|
|
|
|
(void)unused;
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
2015-10-06 11:50:21 +02:00
|
|
|
return;
|
2015-09-02 13:07:13 +02:00
|
|
|
#else
|
2014-06-05 00:17:37 +01:00
|
|
|
sceKernelExitGame();
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2014-06-05 00:17:37 +01:00
|
|
|
}
|
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2014-06-05 00:17:37 +01:00
|
|
|
static int exit_callback(int arg1, int arg2, void *common)
|
|
|
|
{
|
|
|
|
frontend_psp_deinit(NULL);
|
|
|
|
frontend_psp_shutdown(false);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-04-09 05:53:58 +02:00
|
|
|
static int callback_thread(SceSize args, void *argp)
|
2012-11-24 04:23:20 +01:00
|
|
|
{
|
|
|
|
int cbid = sceKernelCreateCallback("Exit callback", exit_callback, NULL);
|
|
|
|
sceKernelRegisterExitCallback(cbid);
|
|
|
|
sceKernelSleepThreadCB();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int setup_callback(void)
|
|
|
|
{
|
2014-09-02 17:42:44 +02:00
|
|
|
int thread_id = sceKernelCreateThread("update_thread",
|
|
|
|
callback_thread, 0x11, 0xFA0, 0, 0);
|
2012-11-24 04:23:20 +01:00
|
|
|
|
|
|
|
if (thread_id >= 0)
|
|
|
|
sceKernelStartThread(thread_id, 0, 0);
|
|
|
|
|
|
|
|
return thread_id;
|
|
|
|
}
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2012-11-24 04:23:20 +01:00
|
|
|
|
2014-05-17 14:56:12 +02:00
|
|
|
static void frontend_psp_init(void *data)
|
2012-11-24 04:23:20 +01:00
|
|
|
{
|
2014-06-05 00:17:37 +01:00
|
|
|
#ifndef IS_SALAMANDER
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2013-11-03 16:38:56 +01:00
|
|
|
(void)data;
|
2015-08-12 19:30:30 +02:00
|
|
|
|
|
|
|
/* TODO/FIXME - Err on the safe side for now and
|
|
|
|
* assume these aren't there with the PSP2/Vita SDKs.
|
|
|
|
*/
|
|
|
|
|
2015-08-10 23:29:50 +02:00
|
|
|
/* initialize debug screen */
|
2015-08-30 19:46:19 +02:00
|
|
|
pspDebugScreenInit();
|
2012-11-24 04:23:20 +01:00
|
|
|
pspDebugScreenClear();
|
2015-08-30 19:46:19 +02:00
|
|
|
|
2012-11-24 04:23:20 +01:00
|
|
|
setup_callback();
|
2015-08-30 19:46:19 +02:00
|
|
|
|
2015-08-10 23:29:50 +02:00
|
|
|
pspFpuSetEnable(0); /* disable FPU exceptions */
|
2014-02-18 18:43:23 +01:00
|
|
|
scePowerSetClockFrequency(333,333,166);
|
2015-09-09 18:37:24 +02:00
|
|
|
#else
|
|
|
|
scePowerSetArmClockFrequency(444);
|
2014-06-05 00:17:37 +01:00
|
|
|
#endif
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2014-06-04 01:35:26 +01:00
|
|
|
|
2014-06-05 00:17:37 +01:00
|
|
|
#if defined(HAVE_KERNEL_PRX) || defined(IS_SALAMANDER)
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2014-06-05 00:17:37 +01:00
|
|
|
pspSdkLoadStartModule("kernel_functions.prx", PSP_MEMORY_PARTITION_KERNEL);
|
2014-06-04 02:52:29 +02:00
|
|
|
#endif
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2013-01-08 08:38:25 +01:00
|
|
|
}
|
2012-11-24 04:23:20 +01:00
|
|
|
|
2014-06-05 00:17:37 +01:00
|
|
|
static void frontend_psp_exec(const char *path, bool should_load_game)
|
2013-01-08 08:38:25 +01:00
|
|
|
{
|
2014-06-05 00:17:37 +01:00
|
|
|
#if defined(HAVE_KERNEL_PRX) || defined(IS_SALAMANDER)
|
2015-06-12 23:38:46 +02:00
|
|
|
char argp[512] = {0};
|
|
|
|
SceSize args = 0;
|
2014-06-05 00:17:37 +01:00
|
|
|
|
|
|
|
argp[0] = '\0';
|
|
|
|
strlcpy(argp, eboot_path, sizeof(argp));
|
|
|
|
args = strlen(argp) + 1;
|
|
|
|
|
|
|
|
#ifndef IS_SALAMANDER
|
2015-11-18 11:43:25 +01:00
|
|
|
char *fullpath = NULL;
|
|
|
|
rarch_main_ctl(RARCH_MAIN_CTL_GET_CONTENT_PATH, &fullpath);
|
2015-03-21 04:43:18 +01:00
|
|
|
|
2015-11-18 11:43:25 +01:00
|
|
|
if (should_load_game && fullpath[0] != '\0')
|
2014-06-05 00:17:37 +01:00
|
|
|
{
|
|
|
|
argp[args] = '\0';
|
2015-11-18 11:43:25 +01:00
|
|
|
strlcat(argp + args, fullpath, sizeof(argp) - args);
|
2014-06-05 00:17:37 +01:00
|
|
|
args += strlen(argp + args) + 1;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
RARCH_LOG("Attempt to load executable: [%s].\n", path);
|
|
|
|
|
|
|
|
exitspawn_kernel(path, args, argp);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2014-10-02 21:39:29 +02:00
|
|
|
static void frontend_psp_set_fork(bool exit, bool start_game)
|
|
|
|
{
|
|
|
|
exit_spawn = true;
|
|
|
|
exitspawn_start_game = start_game;
|
|
|
|
}
|
2014-06-05 00:17:37 +01:00
|
|
|
|
2015-06-02 18:28:51 +02:00
|
|
|
static void frontend_psp_exitspawn(char *s, size_t len)
|
2014-06-05 00:17:37 +01:00
|
|
|
{
|
|
|
|
bool should_load_game = false;
|
2014-06-05 06:36:30 +02:00
|
|
|
#ifndef IS_SALAMANDER
|
2014-10-02 21:39:29 +02:00
|
|
|
should_load_game = exitspawn_start_game;
|
2014-06-05 00:17:37 +01:00
|
|
|
|
2014-10-02 21:39:29 +02:00
|
|
|
if (!exit_spawn)
|
|
|
|
return;
|
2014-06-05 00:17:37 +01:00
|
|
|
#endif
|
2015-06-02 18:28:51 +02:00
|
|
|
frontend_psp_exec(s, should_load_game);
|
2013-01-08 08:38:25 +01:00
|
|
|
}
|
|
|
|
|
2014-05-16 22:20:33 +02:00
|
|
|
static int frontend_psp_get_rating(void)
|
|
|
|
{
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
return 6; /* Go with a conservative figure for now. */
|
|
|
|
#else
|
2014-05-16 22:20:33 +02:00
|
|
|
return 4;
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2014-05-16 22:20:33 +02:00
|
|
|
}
|
|
|
|
|
2015-04-18 15:28:06 +02:00
|
|
|
static enum frontend_powerstate frontend_psp_get_powerstate(int *seconds, int *percent)
|
|
|
|
{
|
|
|
|
enum frontend_powerstate ret = FRONTEND_POWERSTATE_NONE;
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
|
|
|
int battery = scePowerIsBatteryExist();
|
|
|
|
#endif
|
2015-04-18 15:28:06 +02:00
|
|
|
int plugged = scePowerIsPowerOnline();
|
|
|
|
int charging = scePowerIsBatteryCharging();
|
|
|
|
|
|
|
|
*percent = scePowerGetBatteryLifePercent();
|
|
|
|
*seconds = scePowerGetBatteryLifeTime() * 60;
|
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifndef VITA
|
2015-04-18 15:28:06 +02:00
|
|
|
if (!battery)
|
|
|
|
{
|
|
|
|
ret = FRONTEND_POWERSTATE_NO_SOURCE;
|
|
|
|
*seconds = -1;
|
|
|
|
*percent = -1;
|
|
|
|
}
|
2015-08-12 12:33:27 +02:00
|
|
|
else
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2015-08-12 12:33:27 +02:00
|
|
|
if (charging)
|
2015-04-18 15:28:06 +02:00
|
|
|
ret = FRONTEND_POWERSTATE_CHARGING;
|
|
|
|
else if (plugged)
|
|
|
|
ret = FRONTEND_POWERSTATE_CHARGED;
|
|
|
|
else
|
|
|
|
ret = FRONTEND_POWERSTATE_ON_POWER_SOURCE;
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2015-04-18 20:03:59 +02:00
|
|
|
enum frontend_architecture frontend_psp_get_architecture(void)
|
|
|
|
{
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
return FRONTEND_ARCH_ARM;
|
|
|
|
#else
|
2015-04-18 20:03:59 +02:00
|
|
|
return FRONTEND_ARCH_MIPS;
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2015-04-18 20:03:59 +02:00
|
|
|
}
|
|
|
|
|
2015-06-15 22:45:02 +02:00
|
|
|
static int frontend_psp_parse_drive_list(void *data)
|
|
|
|
{
|
|
|
|
#ifndef IS_SALAMANDER
|
|
|
|
file_list_t *list = (file_list_t*)data;
|
|
|
|
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
2015-10-17 17:14:41 +02:00
|
|
|
menu_entries_push(list,
|
2015-09-02 13:07:13 +02:00
|
|
|
"cache0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
|
|
|
#else
|
2015-10-17 17:14:41 +02:00
|
|
|
menu_entries_push(list,
|
2015-06-15 22:45:02 +02:00
|
|
|
"ms0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
2015-10-17 17:14:41 +02:00
|
|
|
menu_entries_push(list,
|
2015-06-15 22:45:02 +02:00
|
|
|
"ef0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
2015-10-17 17:14:41 +02:00
|
|
|
menu_entries_push(list,
|
2015-06-15 22:45:02 +02:00
|
|
|
"host0:/", "", MENU_FILE_DIRECTORY, 0, 0);
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2015-06-15 22:45:02 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-07-27 03:44:28 +02:00
|
|
|
frontend_ctx_driver_t frontend_ctx_psp = {
|
2015-04-18 15:28:06 +02:00
|
|
|
frontend_psp_get_environment_settings,
|
|
|
|
frontend_psp_init,
|
|
|
|
frontend_psp_deinit,
|
|
|
|
frontend_psp_exitspawn,
|
2014-06-03 19:21:49 +02:00
|
|
|
NULL, /* process_args */
|
2015-04-18 15:28:06 +02:00
|
|
|
frontend_psp_exec,
|
|
|
|
frontend_psp_set_fork,
|
|
|
|
frontend_psp_shutdown,
|
2014-06-12 16:26:33 +02:00
|
|
|
NULL, /* get_name */
|
2015-04-07 22:48:46 +02:00
|
|
|
NULL, /* get_os */
|
2015-04-18 15:28:06 +02:00
|
|
|
frontend_psp_get_rating,
|
2014-10-17 03:55:16 +02:00
|
|
|
NULL, /* load_content */
|
2015-04-18 20:03:59 +02:00
|
|
|
frontend_psp_get_architecture,
|
2015-04-18 15:28:06 +02:00
|
|
|
frontend_psp_get_powerstate,
|
2015-06-15 22:45:02 +02:00
|
|
|
frontend_psp_parse_drive_list,
|
2015-09-02 13:07:13 +02:00
|
|
|
#ifdef VITA
|
|
|
|
"vita",
|
|
|
|
#else
|
2013-07-27 03:59:01 +02:00
|
|
|
"psp",
|
2015-09-02 13:07:13 +02:00
|
|
|
#endif
|
2013-07-27 03:59:01 +02:00
|
|
|
};
|