This commit is contained in:
twinaphex 2021-09-17 16:49:29 +02:00
parent e9e7a79761
commit fa28e62069
2 changed files with 1 additions and 31 deletions

View File

@ -21,25 +21,6 @@
#include <string>
#include "settings.h"
uint64 MDFN_GetSettingUI(const char *name)
{
fprintf(stderr, "unhandled setting UI: %s\n", name);
return 0;
}
int64 MDFN_GetSettingI(const char *name)
{
fprintf(stderr, "unhandled setting I: %s\n", name);
return 0;
}
double MDFN_GetSettingF(const char *name)
{
fprintf(stderr, "unhandled setting F: %s\n", name);
return 0;
}
bool MDFN_GetSettingB(const char *name)
{
if (!strcmp("lynx.lowpass", name))
@ -48,12 +29,5 @@ bool MDFN_GetSettingB(const char *name)
return 0;
if (!strcmp("cheats", name))
return 0;
fprintf(stderr, "unhandled setting B: %s\n", name);
return 0;
};
std::string MDFN_GetSettingS(const char *name)
{
fprintf(stderr, "unhandled setting S: %s\n", name);
return 0;
}

View File

@ -1,13 +1,9 @@
#ifndef MDFN_SETTINGS_H
#define MDFN_SETTINGS_H
#include <string>
#include <boolean.h>
// This should assert() or something if the setting isn't found, since it would
// be a totally tubular error!
uint64 MDFN_GetSettingUI(const char *name);
int64 MDFN_GetSettingI(const char *name);
double MDFN_GetSettingF(const char *name);
bool MDFN_GetSettingB(const char *name);
std::string MDFN_GetSettingS(const char *name);
#endif