Add version check

This commit is contained in:
zhupengfei
2020-05-15 23:08:59 +08:00
parent 2fbdaaac30
commit 5d008fc952
3 changed files with 37 additions and 5 deletions
+7
View File
@@ -899,6 +899,13 @@ std::vector<Config> LoadPresetConfig(std::string mount_point) {
LOAD_DATA(system_archives_path, "sysarchives/");
LOAD_DATA(system_titles_path, "title/");
#undef LOAD_DATA
// Load version
if (FileUtil::Exists(mount_point + "threeSD/version.txt")) {
std::ifstream stream;
OpenFStream(stream, mount_point + "threeSD/version.txt", std::ios::in);
stream >> config_template.version;
}
}
// Regex for 3DS ID0 and ID1