Skip to content

Commit

Permalink
Fixed bug parsing INI
Browse files Browse the repository at this point in the history
  • Loading branch information
RibShark committed Mar 12, 2018
1 parent 6cbb31b commit 3605b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "stdafx.h"
#include <MMSystem.h>
#define INI_KEY "ToyStory2Fix"

uintptr_t sub_4AB950_addr;
uintptr_t sub_49D910_addr;
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 3605b5b

Please sign in to comment.