aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/Platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/Platform.cpp')
-rw-r--r--src/frontend/qt_sdl/Platform.cpp84
1 files changed, 0 insertions, 84 deletions
diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp
index d410d4f..4630582 100644
--- a/src/frontend/qt_sdl/Platform.cpp
+++ b/src/frontend/qt_sdl/Platform.cpp
@@ -193,90 +193,6 @@ std::string InstanceFileSuffix()
return suffix;
}
-
-int GetConfigInt(ConfigEntry entry)
-{
- const int imgsizes[] = {0, 256, 512, 1024, 2048, 4096};
-
- switch (entry)
- {
-#ifdef JIT_ENABLED
- case JIT_MaxBlockSize: return Config::JIT_MaxBlockSize;
-#endif
-
- case AudioBitDepth: return Config::AudioBitDepth;
-
-#ifdef GDBSTUB_ENABLED
- case GdbPortARM7: return Config::GdbPortARM7;
- case GdbPortARM9: return Config::GdbPortARM9;
-#endif
- }
-
- return 0;
-}
-
-bool GetConfigBool(ConfigEntry entry)
-{
- switch (entry)
- {
-#ifdef JIT_ENABLED
- case JIT_Enable: return Config::JIT_Enable != 0;
- case JIT_LiteralOptimizations: return Config::JIT_LiteralOptimisations != 0;
- case JIT_BranchOptimizations: return Config::JIT_BranchOptimisations != 0;
- case JIT_FastMemory: return Config::JIT_FastMemory != 0;
-#endif
-
- case ExternalBIOSEnable: return Config::ExternalBIOSEnable != 0;
-
- case DSi_FullBIOSBoot: return Config::DSiFullBIOSBoot != 0;
-
-#ifdef GDBSTUB_ENABLED
- case GdbEnabled: return Config::GdbEnabled;
- case GdbARM7BreakOnStartup: return Config::GdbARM7BreakOnStartup;
- case GdbARM9BreakOnStartup: return Config::GdbARM9BreakOnStartup;
-#endif
- }
-
- return false;
-}
-
-bool GetConfigArray(ConfigEntry entry, void* data)
-{
- switch (entry)
- {
- case Firm_MAC:
- {
- std::string& mac_in = Config::FirmwareMAC;
- u8* mac_out = (u8*)data;
-
- int o = 0;
- u8 tmp = 0;
- for (int i = 0; i < 18; i++)
- {
- char c = mac_in[i];
- if (c == '\0') break;
-
- int n;
- if (c >= '0' && c <= '9') n = c - '0';
- else if (c >= 'a' && c <= 'f') n = c - 'a' + 10;
- else if (c >= 'A' && c <= 'F') n = c - 'A' + 10;
- else continue;
-
- if (!(o & 1))
- tmp = n;
- else
- mac_out[o >> 1] = n | (tmp << 4);
-
- o++;
- if (o >= 12) return true;
- }
- }
- return false;
- }
-
- return false;
-}
-
constexpr char AccessMode(FileMode mode, bool file_exists)
{
if (!(mode & FileMode::Write))