Added unknowncheats build configuration without auto updater
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user