mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 21:40:22 +00:00
(Salamander) frontend_context.h gets new member function
'salamander_init'
This commit is contained in:
parent
fb718af5c2
commit
03ec845977
@ -39,6 +39,9 @@ typedef struct frontend_ctx_driver
|
||||
|
||||
// Human readable string.
|
||||
const char *ident;
|
||||
#ifdef IS_SALAMANDER
|
||||
void (*salamander_init)(void);
|
||||
#endif
|
||||
} frontend_ctx_driver_t;
|
||||
|
||||
extern const frontend_ctx_driver_t frontend_ctx_gx;
|
||||
|
@ -96,11 +96,16 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (frontend_ctx && frontend_ctx->init)
|
||||
frontend_ctx->init(args);
|
||||
get_environment_settings(argc, argv, args);
|
||||
salamander_init_settings();
|
||||
|
||||
if (frontend_ctx && frontend_ctx->environment_get)
|
||||
frontend_ctx->environment_get(argc, argv, args);
|
||||
|
||||
if (frontend_ctx && frontend_ctx->salamander_init)
|
||||
frontend_ctx->salamander_init();
|
||||
|
||||
if (frontend_ctx && frontend_ctx->deinit)
|
||||
frontend_ctx->deinit(args);
|
||||
|
||||
if (frontend_ctx && frontend_ctx->exitspawn)
|
||||
frontend_ctx->exitspawn();
|
||||
|
||||
|
@ -67,7 +67,7 @@ static void find_and_set_first_file(void)
|
||||
RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n");
|
||||
}
|
||||
|
||||
static void salamander_init_settings(void)
|
||||
static void salamander_init(void)
|
||||
{
|
||||
char tmp_str[512] = {0};
|
||||
bool config_file_exists;
|
||||
@ -376,4 +376,7 @@ const frontend_ctx_driver_t frontend_ctx_gx = {
|
||||
system_exec, /* exec */
|
||||
NULL, /* shutdown */
|
||||
"gx",
|
||||
#ifdef IS_SALAMANDER
|
||||
salamander_init,
|
||||
#endif
|
||||
};
|
||||
|
@ -69,7 +69,7 @@ static void find_and_set_first_file(void)
|
||||
RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n");
|
||||
}
|
||||
|
||||
static void salamander_init_settings(void)
|
||||
static void salamander_init(void)
|
||||
{
|
||||
CellPadData pad_data;
|
||||
cellPadInit(7);
|
||||
@ -462,4 +462,7 @@ const frontend_ctx_driver_t frontend_ctx_ps3 = {
|
||||
system_exec, /* exec */
|
||||
NULL, /* shutdown */
|
||||
"ps3",
|
||||
#ifdef IS_SALAMANDER
|
||||
salamander_init,
|
||||
#endif
|
||||
};
|
||||
|
@ -132,4 +132,7 @@ const frontend_ctx_driver_t frontend_ctx_psp = {
|
||||
NULL, /* exec */
|
||||
NULL, /* shutdown */
|
||||
"psp",
|
||||
#ifdef IS_SALAMANDER
|
||||
NULL,
|
||||
#endif
|
||||
};
|
||||
|
@ -60,7 +60,7 @@ static void find_and_set_first_file(void)
|
||||
RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n");
|
||||
}
|
||||
|
||||
static void salamander_init_settings(void)
|
||||
static void salamander_init(void)
|
||||
{
|
||||
XINPUT_STATE state;
|
||||
(void)state;
|
||||
@ -365,4 +365,7 @@ const frontend_ctx_driver_t frontend_ctx_xdk = {
|
||||
system_exec, /* exec */
|
||||
NULL, /* shutdown */
|
||||
"xdk",
|
||||
#ifdef IS_SALAMANDER
|
||||
salamander_init,
|
||||
#endif
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user