RetroArch/frontend/drivers/platform_qnx.c

91 lines
3.0 KiB
C
Raw Normal View History

2013-07-27 17:16:46 +02:00
/* RetroArch - A frontend for libretro.
2014-01-01 01:50:59 +01:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2016-01-10 04:06:50 +01:00
* Copyright (C) 2011-2016 - Daniel De Matteis
2013-07-27 17:16:46 +02: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 <stdint.h>
#include <stddef.h>
#include <string.h>
2015-09-15 04:49:10 +02:00
#include <boolean.h>
2015-10-31 21:41:31 +01:00
#include <bps/bps.h>
2016-03-22 03:13:33 +01:00
#include "../../defaults.h"
#include "../../dynamic.h"
2016-05-31 05:06:24 +02:00
#include "../../verbosity.h"
2013-07-27 17:16:46 +02:00
2014-05-17 14:36:15 +02:00
static void frontend_qnx_init(void *data)
2013-07-27 17:16:46 +02:00
{
2013-11-03 16:38:56 +01:00
(void)data;
2016-05-31 05:06:24 +02:00
verbosity_enable();
2013-07-27 17:16:46 +02:00
bps_initialize();
}
2014-05-17 14:36:15 +02:00
static void frontend_qnx_shutdown(bool unused)
2013-07-27 17:16:46 +02:00
{
2014-05-17 14:36:15 +02:00
(void)unused;
2013-07-27 17:16:46 +02: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)
{
2015-07-27 17:18:10 +02:00
fill_pathname_join(g_defaults.path.config, "app/native",
2016-06-20 05:20:14 +02:00
file_path_str(FILE_PATH_MAIN_CONFIG), sizeof(g_defaults.path.config));
2015-07-27 17:18:10 +02:00
fill_pathname_join(g_defaults.dir.shader, "app/native",
"shaders_glsl", sizeof(g_defaults.dir.shader));
fill_pathname_join(g_defaults.dir.overlay, "app/native",
"overlays", sizeof(g_defaults.dir.overlay));
fill_pathname_join(g_defaults.dir.core, "app/native",
"lib", sizeof(g_defaults.dir.core));
fill_pathname_join(g_defaults.dir.core_info, "app/native",
"info", sizeof(g_defaults.dir.core_info));
fill_pathname_join(g_defaults.dir.playlist, "app/native",
"playlists", sizeof(g_defaults.dir.playlist));
}
enum frontend_architecture frontend_qnx_get_architecture(void)
{
return FRONTEND_ARCH_ARM;
}
frontend_ctx_driver_t frontend_ctx_qnx = {
frontend_qnx_get_environment_settings,
frontend_qnx_init,
2013-07-27 17:16:46 +02:00
NULL, /* deinit */
NULL, /* exitspawn */
NULL, /* process_args */
NULL, /* exec */
NULL, /* set_fork */
frontend_qnx_shutdown,
NULL, /* get_name */
NULL, /* get_os */
frontend_qnx_get_rating,
NULL, /* load_content */
frontend_qnx_get_architecture,
NULL, /* get_powerstate */
2015-06-15 22:45:02 +02:00
NULL, /* parse_drive_list */
2016-06-12 02:33:07 +02:00
NULL, /* get_mem_total */
2016-06-12 12:44:28 +02:00
NULL, /* get_mem_free */
2013-07-27 17:16:46 +02:00
"qnx",
};