From 3605b5bb02eaaf2039dd8ef8edfa87aa7f5386e4 Mon Sep 17 00:00:00 2001 From: RibShark <1957489+RibShark@users.noreply.github.com> Date: Mon, 12 Mar 2018 21:50:36 +0000 Subject: [PATCH] Fixed bug parsing INI --- source/dllmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dllmain.cpp b/source/dllmain.cpp index 5f0a7e2..869a166 100644 --- a/source/dllmain.cpp +++ b/source/dllmain.cpp @@ -1,6 +1,5 @@ #include "stdafx.h" #include -#define INI_KEY "ToyStory2Fix" uintptr_t sub_4AB950_addr; uintptr_t sub_49D910_addr; @@ -74,7 +73,8 @@ DWORD WINAPI Init(LPVOID bDelay) if (bDelay) while (pattern.clear().count_hint(1).empty()) { Sleep(0); }; - CIniReader iniReader(""); + CIniReader iniReader("ToyStory2Fix.ini"); + constexpr char* INI_KEY = "ToyStory2Fix"; /* Fix framerate */ if (iniReader.ReadBoolean(INI_KEY, "FixFramerate", true)) {