mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
(XDK) Buildfixes
This commit is contained in:
parent
4b00e24617
commit
2fd6843a18
@ -29,6 +29,9 @@
|
||||
|
||||
#include "platform_xdk.h"
|
||||
#include "../../general.h"
|
||||
#ifndef IS_SALAMANDER
|
||||
#include "../../retroarch.h"
|
||||
#endif
|
||||
|
||||
static bool exit_spawn;
|
||||
static bool exitspawn_start_game;
|
||||
@ -339,17 +342,17 @@ static void frontend_xdk_exec(const char *path, bool should_load_game)
|
||||
LAUNCH_DATA ptr;
|
||||
memset(&ptr, 0, sizeof(ptr));
|
||||
|
||||
if (should_load_game && global->fullpath[0] != '\0')
|
||||
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", global->fullpath);
|
||||
if (should_load_game && global->path.fullpath[0] != '\0')
|
||||
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", global->path.fullpath);
|
||||
|
||||
if (path[0] != '\0')
|
||||
XLaunchNewImage(path, ptr.Data[0] != '\0' ? &ptr : NULL);
|
||||
#elif defined(_XBOX360)
|
||||
char game_path[1024] = {0};
|
||||
|
||||
if (should_load_game && global->fullpath[0] != '\0')
|
||||
if (should_load_game && global->path.fullpath[0] != '\0')
|
||||
{
|
||||
strlcpy(game_path, global->fullpath, sizeof(game_path));
|
||||
strlcpy(game_path, global->path.fullpath, sizeof(game_path));
|
||||
XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user