Remove references to other cores

This core only emulates GBA
This commit is contained in:
retro-wertz 2018-05-26 11:01:14 +08:00
parent d31d8781fb
commit 105c84037c
5 changed files with 3 additions and 44 deletions

View File

@ -24,7 +24,7 @@ NEED_BLIP = 1
NEED_STEREO_SOUND = 1
NEED_CRC32 = 1
WANT_NEW_API = 1
CORE_DEFINE := -DWANT_GBA_EMU
CORE_DEFINE :=
prefix := /usr
libdir := $(prefix)/lib

View File

@ -18,7 +18,6 @@ endif
include $(CORE_DIR)/Makefile.common
COREFLAGS := -funroll-loops $(INCFLAGS) -DMEDNAFEN_VERSION=\"0.9.26\" -DMEDNAFEN_VERSION_NUMERIC=926 -DPSS_STYLE=1 -D__LIBRETRO__ -D_LOW_ACCURACY_ -DINLINE="inline" $(FLAGS)
COREFLAGS += -DWANT_GBA_EMU
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")

View File

@ -9,6 +9,7 @@
#include "libretro.h"
static MDFNGI *game;
MDFNGI *MDFNGameInfo = NULL;
struct retro_perf_callback perf_cb;
retro_get_cpu_features_t perf_get_cpu_features_cb = NULL;
@ -4049,41 +4050,6 @@ void MDFND_PrintError(const char* err)
log_cb(RETRO_LOG_ERROR, "%s\n", err);
}
MDFNGI *MDFNGameInfo = NULL;
#if defined(WANT_NES_EMU)
extern MDFNGI EmulatedNES;
#define MDFNGI_CORE &EmulatedNES
#elif defined WANT_SNES_EMU
extern MDFNGI EmulatedSNES;
#define MDFNGI_CORE &EmulatedSNES
extern MDFNGI EmulatedGB;
#elif defined WANT_GB_EMU
#define MDFNGI_CORE &EmulatedGB
#elif defined WANT_GBA_EMU
extern MDFNGI EmulatedGBA;
#define MDFNGI_CORE &EmulatedGBA
#elif defined WANT_PCE_EMU
extern MDFNGI EmulatedPCE;
#define MDFNGI_CORE &EmulatedPCE
#elif defined WANT_LYNX_EMU
extern MDFNGI EmulatedLynx;
#define MDFNGI_CORE &EmulatedLynx
#elif defined WANT_MD_EMU
extern MDFNGI EmulatedMD;
#define MDFNGI_CORE &EmulatedMD
#elif defined WANT_PCFX_EMU
extern MDFNGI EmulatedPCFX;
#define MDFNGI_CORE &EmulatedPCFX
#elif defined WANT_SMS_EMU
extern MDFNGI EmulatedSMS;
#define MDFNGI_CORE &EmulatedSMS
#elif defined(WANT_SMS_EMU) && defined(WANT_GG_EMU)
extern MDFNGI EmulatedGG;
#define MDFNGI_CORE &EmulatedGG
#endif
/* forward declarations */
extern void MDFND_DispMessage(unsigned char *str);
@ -4109,7 +4075,7 @@ MDFNGI *MDFNI_LoadGame(const char *force_module, const char *name)
{
MDFNFILE GameFile;
std::vector<FileExtensionSpecStruct> valid_iae;
MDFNGameInfo = MDFNGI_CORE;
MDFNGameInfo = &EmulatedGBA;
MDFN_printf(_("Loading %s...\n"),name);

View File

@ -21,9 +21,7 @@
#include <string>
#include "settings.h"
#if defined(WANT_GBA_EMU)
uint32_t setting_gba_hle = 1;
#endif
bool MDFN_SaveSettings(const char *path)
{
@ -85,10 +83,8 @@ extern std::string retro_base_name;
std::string MDFN_GetSettingS(const char *name)
{
#if defined(WANT_GBA_EMU)
if (!strcmp("gba.bios", name))
return setting_gba_hle ? std::string("") : std::string("gba_bios.bin");
#endif
/* FILESYS */
if (!strcmp("filesys.path_firmware", name))
return retro_base_directory;

View File

@ -3,9 +3,7 @@
#include <string>
#if defined(WANT_GBA_EMU)
extern uint32_t setting_gba_hle;
#endif
bool MDFN_LoadSettings(const char *path, const char *section = NULL, bool override = false);
bool MDFN_MergeSettings(const void*);