(XDK) Buildfixes
This commit is contained in:
parent
4b00e24617
commit
2fd6843a18
|
@ -29,6 +29,9 @@
|
||||||
|
|
||||||
#include "platform_xdk.h"
|
#include "platform_xdk.h"
|
||||||
#include "../../general.h"
|
#include "../../general.h"
|
||||||
|
#ifndef IS_SALAMANDER
|
||||||
|
#include "../../retroarch.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
static bool exit_spawn;
|
static bool exit_spawn;
|
||||||
static bool exitspawn_start_game;
|
static bool exitspawn_start_game;
|
||||||
|
@ -339,17 +342,17 @@ static void frontend_xdk_exec(const char *path, bool should_load_game)
|
||||||
LAUNCH_DATA ptr;
|
LAUNCH_DATA ptr;
|
||||||
memset(&ptr, 0, sizeof(ptr));
|
memset(&ptr, 0, sizeof(ptr));
|
||||||
|
|
||||||
if (should_load_game && global->fullpath[0] != '\0')
|
if (should_load_game && global->path.fullpath[0] != '\0')
|
||||||
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", global->fullpath);
|
snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", global->path.fullpath);
|
||||||
|
|
||||||
if (path[0] != '\0')
|
if (path[0] != '\0')
|
||||||
XLaunchNewImage(path, ptr.Data[0] != '\0' ? &ptr : NULL);
|
XLaunchNewImage(path, ptr.Data[0] != '\0' ? &ptr : NULL);
|
||||||
#elif defined(_XBOX360)
|
#elif defined(_XBOX360)
|
||||||
char game_path[1024] = {0};
|
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);
|
XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue