static void system_exec(const char *path, bool should_load_game) { (void)should_load_game; RARCH_LOG("Attempt to load executable: [%s].\n", path); #ifdef IS_SALAMANDER XLaunchNewImage(path, NULL); #else #if defined(_XBOX1) LAUNCH_DATA ptr; memset(&ptr, 0, sizeof(ptr)); if (should_load_game) { snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", g_extern.fullpath); XLaunchNewImage(path, &ptr); } else XLaunchNewImage(path, NULL); #elif defined(_XBOX360) char game_path[1024]; if (should_load_game) { strlcpy(game_path, g_extern.fullpath, sizeof(game_path)); XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE); } XLaunchNewImage(path, NULL); #endif #endif }
static void frontend_xdk_exec(const char *path, bool should_load_game) { #ifndef IS_SALAMANDER bool *verbose = retro_main_verbosity(); bool original_verbose = *verbose; *verbose = true; #endif (void)should_load_game; #ifdef IS_SALAMANDER if (path[0] != '\0') XLaunchNewImage(path, NULL); #else #ifdef _XBOX char *fullpath = NULL; runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath); #if defined(_XBOX1) LAUNCH_DATA ptr; memset(&ptr, 0, sizeof(ptr)); if (should_load_game && fullpath[0] != '\0') snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", 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 && fullpath[0] != '\0') { strlcpy(game_path, fullpath, sizeof(game_path)); XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE); } if (path[0] != '\0') XLaunchNewImage(path, NULL); #endif #endif #endif #ifndef IS_SALAMANDER *verbose = original_verbose; #endif }
static void frontend_xdk_exec(const char *path, bool should_load_game) { #ifndef IS_SALAMANDER bool original_verbose = verbosity_is_enabled(); #endif #if defined(_XBOX1) LAUNCH_DATA ptr; #elif defined(_XBOX360) char game_path[1024] = {0}; #endif (void)should_load_game; #ifdef IS_SALAMANDER if (!string_is_empty(path)) XLaunchNewImage(path, NULL); #else #if defined(_XBOX1) memset(&ptr, 0, sizeof(ptr)); if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT)) snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", path_get(RARCH_PATH_CONTENT)); if (!string_is_empty(path)) XLaunchNewImage(path, !string_is_empty((const char*)ptr.Data) ? &ptr : NULL); #elif defined(_XBOX360) if (should_load_game && !path_is_empty(RARCH_PATH_CONTENT)) { strlcpy(game_path, path_get(RARCH_PATH_CONTENT), sizeof(game_path)); XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE); } if (!string_is_empty(path)) XLaunchNewImage(path, 0); #endif #endif #ifndef IS_SALAMANDER if (original_verbose) verbosity_enable(); else verbosity_disable(); #endif }
static void frontend_xdk_exec(const char *path, bool should_load_game) { #ifndef IS_SALAMANDER bool original_verbose = g_extern.verbose; g_extern.verbose = true; #endif (void)should_load_game; RARCH_LOG("Attempt to load executable: [%s].\n", path); #ifdef IS_SALAMANDER if (path[0] != '\0') XLaunchNewImage(path, NULL); #else #if defined(_XBOX1) LAUNCH_DATA ptr; memset(&ptr, 0, sizeof(ptr)); if (should_load_game && g_extern.fullpath[0] != '\0') snprintf((char*)ptr.Data, sizeof(ptr.Data), "%s", g_extern.fullpath); if (path[0] != '\0') XLaunchNewImage(path, ptr.Data[0] != '\0' ? &ptr : NULL); #elif defined(_XBOX360) char game_path[1024]; if (should_load_game && g_extern.fullpath[0] != '\0') { strlcpy(game_path, g_extern.fullpath, sizeof(game_path)); XSetLaunchData(game_path, MAX_LAUNCH_DATA_SIZE); } if (path[0] != '\0') XLaunchNewImage(path, NULL); #endif #endif #ifndef IS_SALAMANDER g_extern.verbose = original_verbose; #endif }