From b8c0581ee475dbc848fe6e7fbc15d9aea7425c8f Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 16 Apr 2020 13:17:26 +0100 Subject: [PATCH] Found the original Config.cpp variable names Thank you, Mac port... --- src/Config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index dfc02224..ffcc11a5 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -7,8 +7,8 @@ #include "Config.h" #include "Main.h" -static const char* const config_filename = "Config.dat"; // Not the original name -static const char* const config_magic = "DOUKUTSU20041206"; // Not the original name +static const char* const gConfigName = "Config.dat"; +static const char* const gProof = "DOUKUTSU20041206"; BOOL LoadConfigData(CONFIG *conf) { @@ -17,7 +17,7 @@ BOOL LoadConfigData(CONFIG *conf) // Get path char path[MAX_PATH]; - sprintf(path, "%s\\%s", gModulePath, config_filename); + sprintf(path, "%s\\%s", gModulePath, gConfigName); // Open file FILE *fp = fopen(path, "rb"); @@ -31,7 +31,7 @@ BOOL LoadConfigData(CONFIG *conf) fclose(fp); // Check if version is not correct, and return if it failed - if (fread_result != 1 || strcmp(conf->proof, config_magic)) + if (fread_result != 1 || strcmp(conf->proof, gProof)) { memset(conf, 0, sizeof(CONFIG)); return FALSE;