mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 21:40:02 +00:00
remove HW_DOL codepath for platform_gx_exec.c
This commit is contained in:
parent
5cb9713aae
commit
870115de38
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(HW_RVL)
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fat.h>
|
#include <fat.h>
|
||||||
#include <gctypes.h>
|
#include <gctypes.h>
|
||||||
@ -35,13 +34,8 @@ extern uint8_t _binary_wii_app_booter_app_booter_bin_end[];
|
|||||||
#define booter_start _binary_wii_app_booter_app_booter_bin_start
|
#define booter_start _binary_wii_app_booter_app_booter_bin_start
|
||||||
#define booter_end _binary_wii_app_booter_app_booter_bin_end
|
#define booter_end _binary_wii_app_booter_app_booter_bin_end
|
||||||
|
|
||||||
#elif defined(HW_DOL)
|
|
||||||
#include "../../ngc/sidestep.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../retroarch_logger.h"
|
#include "../../retroarch_logger.h"
|
||||||
|
|
||||||
#ifdef HW_RVL
|
|
||||||
// NOTE: this does not update the path to point to the new loading .dol file.
|
// NOTE: this does not update the path to point to the new loading .dol file.
|
||||||
// we only need it for keeping the current directory anyway.
|
// we only need it for keeping the current directory anyway.
|
||||||
void dol_copy_argv_path(void)
|
void dol_copy_argv_path(void)
|
||||||
@ -58,14 +52,13 @@ void dol_copy_argv_path(void)
|
|||||||
argv->length = len;
|
argv->length = len;
|
||||||
DCFlushRange(ARGS_ADDR, sizeof(struct __argv) + argv->length);
|
DCFlushRange(ARGS_ADDR, sizeof(struct __argv) + argv->length);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// WARNING: after we move any data into EXECUTE_ADDR, we can no longer use any
|
// WARNING: after we move any data into EXECUTE_ADDR, we can no longer use any
|
||||||
// heap memory and are restricted to the stack only
|
// heap memory and are restricted to the stack only
|
||||||
static void rarch_console_exec(const char *path)
|
static void rarch_console_exec(const char *path)
|
||||||
{
|
{
|
||||||
RARCH_LOG("Attempt to load executable: [%s].\n", path);
|
RARCH_LOG("Attempt to load executable: [%s].\n", path);
|
||||||
#if defined(HW_RVL)
|
|
||||||
FILE * fp = fopen(path, "rb");
|
FILE * fp = fopen(path, "rb");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
{
|
{
|
||||||
@ -109,7 +102,4 @@ static void rarch_console_exec(const char *path)
|
|||||||
RARCH_LOG("jumping to %08x\n", (unsigned) BOOTER_ADDR);
|
RARCH_LOG("jumping to %08x\n", (unsigned) BOOTER_ADDR);
|
||||||
SYS_ResetSystem(SYS_SHUTDOWN,0,0);
|
SYS_ResetSystem(SYS_SHUTDOWN,0,0);
|
||||||
__lwp_thread_stopmultitasking((void (*)(void)) BOOTER_ADDR);
|
__lwp_thread_stopmultitasking((void (*)(void)) BOOTER_ADDR);
|
||||||
#elif defined(HW_DOL)
|
|
||||||
DOLtoARAM(path);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user