(PS3) Clean up Salamander implementation

This commit is contained in:
twinaphex 2014-06-04 22:44:37 +02:00
parent a23b1ad2d7
commit 1374226c6a

View File

@ -69,19 +69,6 @@ static void find_and_set_first_file(void)
static void frontend_ps3_salamander_init(void)
{
CellPadData pad_data;
cellPadInit(7);
cellPadGetData(0, &pad_data);
if(pad_data.button[CELL_PAD_BTN_OFFSET_DIGITAL2] & CELL_PAD_CTRL_TRIANGLE)
{
//override path, boot first executable in cores directory
RARCH_LOG("Fallback - Will boot first executable in RetroArch cores/ directory.\n");
find_and_set_first_file();
}
else
{
//normal executable loading path
char tmp_str[PATH_MAX];
bool config_file_exists = false;
@ -89,18 +76,6 @@ static void frontend_ps3_salamander_init(void)
if (path_file_exists(default_paths.config_path))
config_file_exists = true;
//try to find CORE executable
char core_executable[1024];
fill_pathname_join(core_executable, default_paths.core_dir, "CORE.SELF", sizeof(core_executable));
if(path_file_exists(core_executable))
{
//Start CORE executable
strlcpy(libretro_path, core_executable, sizeof(libretro_path));
RARCH_LOG("Start [%s].\n", libretro_path);
}
else
{
if (config_file_exists)
{
config_file_t * conf = config_file_new(default_paths.config_path);
@ -121,11 +96,6 @@ static void frontend_ps3_salamander_init(void)
config_file_write(new_conf, default_paths.config_path);
config_file_free(new_conf);
}
}
}
cellPadEnd();
}
#endif