RetroArch/frontend/platform/platform_qnx.c

75 lines
2.6 KiB
C
Raw Normal View History

2013-07-27 15:16:46 +00:00
/* RetroArch - A frontend for libretro.
2014-01-01 00:50:59 +00:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2014 - Daniel De Matteis
2013-07-27 15:16:46 +00:00
*
* 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"
2013-07-27 15:16:46 +00:00
2014-05-17 12:36:15 +00:00
static void frontend_qnx_init(void *data)
2013-07-27 15:16:46 +00:00
{
2013-11-03 15:38:56 +00:00
(void)data;
2013-07-27 15:16:46 +00:00
bps_initialize();
}
2014-05-17 12:36:15 +00:00
static void frontend_qnx_shutdown(bool unused)
2013-07-27 15:16:46 +00:00
{
2014-05-17 12:36:15 +00:00
(void)unused;
2013-07-27 15:16:46 +00:00
bps_shutdown();
}
static int frontend_qnx_get_rating(void)
{
/* TODO/FIXME - look at unique identifier per device and
* determine rating for some */
return -1;
}
static void frontend_qnx_get_environment_settings(int *argc, char *argv[],
void *data, void *params_data)
{
2014-09-02 15:42:44 +00:00
fill_pathname_join(g_defaults.config_path, "app/native",
"retroarch.cfg", sizeof(g_defaults.config_path));
fill_pathname_join(g_defaults.shader_dir, "app/native",
"shaders_glsl", sizeof(g_defaults.shader_dir));
fill_pathname_join(g_defaults.overlay_dir, "app/native",
"overlays", sizeof(g_defaults.overlay_dir));
fill_pathname_join(g_defaults.core_dir, "app/native",
"lib", sizeof(g_defaults.core_dir));
fill_pathname_join(g_defaults.core_info_dir, "app/native",
"info", sizeof(g_defaults.core_info_dir));
fill_pathname_join(g_defaults.playlist_dir, "app/native",
"playlists", sizeof(g_defaults.playlist_dir));
}
const frontend_ctx_driver_t frontend_ctx_qnx = {
frontend_qnx_get_environment_settings, /* get_environment_settings */
2014-05-17 12:36:15 +00:00
frontend_qnx_init, /* init */
2013-07-27 15:16:46 +00:00
NULL, /* deinit */
NULL, /* exitspawn */
NULL, /* process_args */
NULL, /* process_events */
2013-07-27 15:16:46 +00:00
NULL, /* exec */
2014-05-17 12:36:15 +00:00
frontend_qnx_shutdown, /* shutdown */
NULL, /* get_name */
frontend_qnx_get_rating, /* get_rating */
2013-07-27 15:16:46 +00:00
"qnx",
};