diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-05-30 00:28:21 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-05-30 00:28:21 +0200 |
commit | c45068da0eb4dc5ce25524cc0b0a12cd78ed036a (patch) | |
tree | d91562d2c16ef0a953703812d0724bf6cdda74a0 /src/frontend/qt_sdl | |
parent | 88823f66cb7f053e1d0f22d2eb0510ab32d8e474 (diff) |
embed romlist.bin
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 8df6ec8..a3207c7 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -1900,39 +1900,6 @@ int main(int argc, char** argv) SANITIZE(Config::ScreenSizing, 0, 3); #undef SANITIZE - // TODO: this should be checked before running anything -#if 0 - { - const char* romlist_missing = "Save memory type detection will not work correctly.\n\n" - "You should use the latest version of romlist.bin (provided in melonDS release packages)."; -#if !defined(UNIX_PORTABLE) && !defined(__WIN32__) - std::string missingstr = std::string(romlist_missing) + - "\n\nThe ROM list should be placed in " + g_get_user_data_dir() + "/melonds/, otherwise " - "melonDS will search for it in the current working directory."; - const char* romlist_missing_text = missingstr.c_str(); -#else - const char* romlist_missing_text = romlist_missing; -#endif - - FILE* f = Platform::OpenDataFile("romlist.bin"); - if (f) - { - u32 data; - fread(&data, 4, 1, f); - fclose(f); - - if ((data >> 24) == 0) // old CRC-based list - { - uiMsgBoxError(NULL, "Your version of romlist.bin is outdated.", romlist_missing_text); - } - } - else - { - uiMsgBoxError(NULL, "romlist.bin not found.", romlist_missing_text); - } - } -#endif - QSurfaceFormat format; format.setDepthBufferSize(24); format.setStencilBufferSize(8); |