diff options
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/Platform.h b/src/Platform.h index 9b18dc4..2faef50 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -36,11 +36,24 @@ void StopEmu(); enum ConfigEntry { +#ifdef JIT_ENABLED JIT_Enable, JIT_MaxBlockSize, JIT_LiteralOptimizations, JIT_BranchOptimizations, JIT_FastMemory, +#endif + + ExternalBIOSEnable, + + BIOS9Path, + BIOS7Path, + FirmwarePath, + + DSi_BIOS9Path, + DSi_BIOS7Path, + DSi_FirmwarePath, + DSi_NANDPath, DLDI_Enable, DLDI_ImagePath, @@ -79,11 +92,11 @@ std::string GetConfigString(ConfigEntry entry); // Looks in the user's data directory first, then the system's. // If on Windows or a portable UNIX build, this simply calls OpenLocalFile(). -FILE* OpenFile(const char* path, const char* mode, bool mustexist=false); -FILE* OpenLocalFile(const char* path, const char* mode); -FILE* OpenDataFile(const char* path); +FILE* OpenFile(std::string path, std::string mode, bool mustexist=false); +FILE* OpenLocalFile(std::string path, std::string mode); +FILE* OpenDataFile(std::string path); -inline bool FileExists(const char* name) +inline bool FileExists(std::string name) { FILE* f = OpenFile(name, "rb"); if (!f) return false; @@ -91,7 +104,7 @@ inline bool FileExists(const char* name) return true; } -inline bool LocalFileExists(const char* name) +inline bool LocalFileExists(std::string name) { FILE* f = OpenLocalFile(name, "rb"); if (!f) return false; |