mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-01 07:38:38 +00:00
32cae444a0
Moved private stuff to libretro_private.h. Dropped use of retro_variable (redundant and wrong type). Didn't understand difference between EXEC_LOAD and EXEC_RELOAD at all. Only one was used anyways ...
66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
|
* Copyright (C) 2011-2013 - Daniel De Matteis
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <bps/bps.h>
|
|
|
|
#include <stdint.h>
|
|
#include "../../boolean.h"
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include "../../dynamic.h"
|
|
#include "../../libretro_private.h"
|
|
|
|
static void get_environment_settings(int argc, char *argv[], void *args)
|
|
{
|
|
(void)argc;
|
|
(void)argv;
|
|
|
|
/* FIXME - should this apply for both BB10 and PB? */
|
|
#if defined(__QNX__) && !defined(HAVE_BB10)
|
|
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)"app/native/lib");
|
|
|
|
strlcpy(g_extern.config_path, "app/native/retroarch.cfg", sizeof(g_extern.config_path));
|
|
strlcpy(g_settings.video.shader_dir, "app/native/shaders_glsl", sizeof(g_settings.video.shader_dir));
|
|
#endif
|
|
|
|
config_load();
|
|
}
|
|
|
|
static void system_init(void)
|
|
{
|
|
/* FIXME - should this apply for both BB10 and PB? */
|
|
#if defined(__QNX__) && !defined(HAVE_BB10)
|
|
bps_initialize();
|
|
#endif
|
|
}
|
|
|
|
static void system_shutdown(void)
|
|
{
|
|
bps_shutdown();
|
|
}
|
|
|
|
const frontend_ctx_driver_t frontend_ctx_qnx = {
|
|
get_environment_settings, /* get_environment_settings */
|
|
system_init, /* init */
|
|
NULL, /* deinit */
|
|
NULL, /* exitspawn */
|
|
NULL, /* process_args */
|
|
NULL, /* process_events */
|
|
NULL, /* exec */
|
|
system_shutdown, /* shutdown */
|
|
"qnx",
|
|
};
|