ref: b8c0581ee475dbc848fe6e7fbc15d9aea7425c8f
parent: 6e3d90d3d10fd8a3c02ccb15a923e662fc346209
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 16 09:17:26 EDT 2020
Found the original Config.cpp variable names Thank you, Mac port...
--- 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 @@
// 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 @@
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;