mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Moved ModifiedIni to main.cpp.
This commit is contained in:
@@ -88,7 +88,6 @@ std::unordered_map<fo::Program*, fo::GameObject*> selfOverrideMap;
|
||||
typedef std::unordered_map<std::string, ExportedVar> ExportedVarsMap;
|
||||
static ExportedVarsMap globalExportedVars;
|
||||
DWORD isGlobalScriptLoading = 0;
|
||||
DWORD modifiedIni;
|
||||
|
||||
std::unordered_map<__int64, int> globalVars;
|
||||
typedef std::unordered_map<__int64, int> :: iterator glob_itr;
|
||||
@@ -689,7 +688,6 @@ void ScriptExtender::init() {
|
||||
SafeWrite8(0x4C9F12, 0x6A); // push
|
||||
SafeWrite8(0x4C9F13, idle);
|
||||
}
|
||||
modifiedIni = GetConfigInt("Main", "ModifiedIni", 0);
|
||||
|
||||
arraysBehavior = GetConfigInt("Misc", "arraysBehavior", 1);
|
||||
if (arraysBehavior > 0) {
|
||||
|
||||
@@ -98,7 +98,6 @@ ScriptProgram* GetGlobalScriptProgram(fo::Program* scriptPtr);
|
||||
static char regAnimCombatCheck = 1;
|
||||
extern DWORD isGlobalScriptLoading;
|
||||
extern DWORD availableGlobalScriptTypes;
|
||||
extern DWORD modifiedIni;
|
||||
extern bool alwaysFindScripts;
|
||||
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ bool isDebug = false;
|
||||
const char ddrawIni[] = ".\\ddraw.ini";
|
||||
static char ini[65] = ".\\";
|
||||
static char translationIni[65];
|
||||
DWORD modifiedIni;
|
||||
|
||||
unsigned int GetConfigInt(const char* section, const char* setting, int defaultValue) {
|
||||
return GetPrivateProfileIntA(section, setting, defaultValue, ini);
|
||||
@@ -272,6 +273,7 @@ inline void SfallInit() {
|
||||
}
|
||||
|
||||
GetConfigString("Main", "TranslationsINI", "./Translations.ini", translationIni, 65);
|
||||
modifiedIni = GetConfigInt("Main", "ModifiedIni", 0);
|
||||
|
||||
InitModules();
|
||||
}
|
||||
|
||||
@@ -91,5 +91,6 @@ std::string Translate(const char* section, const char* setting, const char* defa
|
||||
size_t Translate(const char* section, const char* setting, const char* defaultValue, char* buffer, size_t bufSize = 128);
|
||||
|
||||
extern const char ddrawIni[];
|
||||
extern DWORD modifiedIni;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user