Added unknowncheats build configuration without auto updater

This commit is contained in:
IMXNOOBX
2023-10-05 16:56:12 +02:00
parent 06b4eff2c6
commit 74929c1342
5 changed files with 96 additions and 11 deletions
+7 -5
View File
@@ -2,6 +2,7 @@
namespace updater {
#ifndef _UC
bool check_and_update(bool automatic_update) {
json commit;
if (!get_last_commit_date(commit)) {
@@ -75,11 +76,6 @@ namespace updater {
return false;
}
bool file_good(const std::string& name) {
std::ifstream f(name.c_str());
return f.good();
}
bool get_last_commit_date(json& commit) {
HINTERNET hInternet, hConnect;
@@ -164,6 +160,12 @@ namespace updater {
return true;
}
#endif
bool file_good(const std::string& name) {
std::ifstream f(name.c_str());
return f.good();
}
bool read() {
if (!updater::file_good(file_path)) {