mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-23 07:50:03 +00:00
(NGP) Added NGP core option - Language
This commit is contained in:
parent
4fd934cafa
commit
164c9aecfb
18
libretro.cpp
18
libretro.cpp
@ -481,6 +481,18 @@ static void check_variables(void)
|
||||
|
||||
PSXDitherApply(apply_dither);
|
||||
}
|
||||
#elif defined(WANT_NGP_EMU)
|
||||
var.key = "ngp_language";
|
||||
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var))
|
||||
{
|
||||
if (strcmp(var.value, "japanese") == 0)
|
||||
setting_ngp_language = 0;
|
||||
else if (strcmp(var.value, "english") == 0)
|
||||
setting_ngp_language = 1;
|
||||
|
||||
retro_reset();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -1204,6 +1216,12 @@ void retro_set_environment(retro_environment_t cb)
|
||||
{ NULL, NULL },
|
||||
};
|
||||
cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
|
||||
#elif defined(WANT_NGP_EMU)
|
||||
static const struct retro_variable vars[] = {
|
||||
{ "ngp_language", "Language; japanese|english" },
|
||||
{ NULL, NULL },
|
||||
};
|
||||
cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -25,9 +25,7 @@
|
||||
#include "spu.h"
|
||||
#include "../mempatcher.h"
|
||||
#include "../cputest/cputest.h"
|
||||
#ifdef __BLACKBERRY_QNX__
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
extern MDFNGI EmulatedPSX;
|
||||
|
||||
|
@ -31,6 +31,8 @@ uint32_t setting_pce_keepaspect = 1;
|
||||
#elif defined(WANT_PSX_EMU)
|
||||
uint32_t setting_psx_multitap_port_1 = 0;
|
||||
uint32_t setting_psx_multitap_port_2 = 0;
|
||||
#elif defined(WANT_NGP_EMU)
|
||||
uint32_t setting_ngp_language = 0;
|
||||
#endif
|
||||
|
||||
bool MDFN_SaveSettings(const char *path)
|
||||
@ -189,6 +191,9 @@ bool MDFN_GetSettingB(const char *name)
|
||||
return 1;
|
||||
if (!strcmp("psx.fastboot", name))
|
||||
return 1;
|
||||
#elif defined(WANT_NGP_EMU)
|
||||
if (!strcmp("ngp.language", name))
|
||||
return setting_ngp_language;
|
||||
#endif
|
||||
/* WSWAN */
|
||||
if (!strcmp("wswan.forcemono", name))
|
||||
|
@ -13,6 +13,8 @@ extern uint32_t setting_pce_keepaspect;
|
||||
#elif defined(WANT_PSX_EMU)
|
||||
extern uint32_t setting_psx_multitap_port_1;
|
||||
extern uint32_t setting_psx_multitap_port_2;
|
||||
#elif defined(WANT_NGP_EMU)
|
||||
extern uint32_t setting_ngp_language;
|
||||
#endif
|
||||
|
||||
bool MDFN_LoadSettings(const char *path, const char *section = NULL, bool override = false);
|
||||
|
Loading…
Reference in New Issue
Block a user