Fixed brain issue with the auto updater

This commit is contained in:
IMXNOOBX
2023-09-30 16:09:38 +02:00
parent e24bb1edb5
commit 322077ce93
4 changed files with 42 additions and 25 deletions
+1 -6
View File
@@ -4,13 +4,8 @@ namespace config {
using json = nlohmann::json;
const std::string file_path = "offsets.json";
bool file_exsits(const std::string& name) {
std::ifstream f(name.c_str());
return f.good();
}
bool read() {
if (!file_exsits(file_path)) {
if (!updater::file_good(file_path)) {
save();
return false;
}