You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
<< "#How many times per frame should the main loop run? Raising this will increase the CPU usage of the program. If you're experiencing performance problems, consider lowering this.\n"
71
+
<< "#I suggest not going below one, because that will make the program much less accurate. 0 will crash the program. [Recommended: User Preference]\n"
<< "#This works in conjunction with bEnableLockedMouseMulti and bEnableAdaptiveMouse. At least one of them must be enabled for this to be used. [Recommended: User Preference]\n"
<< "#If you want to completely disable the speed limiter, enable this. Might have some bad side effects. Setting the minimum frametime to 0 has the same effect, but is theoretically safer. [Recommended: keep off]\n"
<< "#Enabling this will disable the in game mouse sensitivity controller, and lock the relative sensitivity to a desired variable. [Recommended: User Preference]\n"
<< "#The frametime target when you are not tabbed into the game.[Default: 60, Recommended: <60]\n"
59
-
<< "requestedMinFrameTimeNoFocus=24\n\n"
60
-
<< "#The in-game field of view. [Default: 45, Recommended: User Preference]\n"
61
-
<< "Fov=45\n\n"
62
-
<< "#The in game gamma (brightness). [Default: 45, Recommended: User Preference]\n"
63
-
<< "gamma=45\n\n"
64
-
<< "#How many times per frame should the main loop run? Raising this will increase the CPU usage of the program. If you're experiencing performance problems, consider lowering this.\n"
65
-
<< "#I suggest not going below one, because that will make the program much less accurate. 0 will crash the program. [Recommended: User Preference]\n"
66
-
<< "mainThreadUpdateCoef=2\n\n"
67
-
<< "#IGMState overrides change the base multiplier for each state. [Default: 0=1, 1=2, 2=4, Recommended: User Preference]\n"
68
-
<< "igmState0Override=1\n"
69
-
<< "igmState1Override=2\n"
70
-
<< "igmState2Override=4\n\n"
71
-
<< "#This works in conjunction with bEnableLockedMouseMulti and bEnableAdaptiveMouse. At least one of them must be enabled for this to be used. [Recommended: User Preference]\n"
72
-
<< "lockedMouseMulti=1\n\n"
73
-
<< "#If you want to completely disable the speed limiter, enable this. Might have some bad side effects. Setting the minimum frametime to 0 has the same effect, but is theoretically safer. [Recommended: keep off]\n"
74
-
<< "bEnableFullSpeedMode=false\n\n"
75
-
<< "#If your in game animations are running at an incorrect speed, enabling this option may help. [Recommended: keep on]\n"
76
-
<< "bEnableAdaptiveIGM=true\n\n"
77
-
<< "#If you like the game's default sensitivity scaling, disable this. Enables my relative mouse speed algorithm. [Recommended: User Preference]\n"
78
-
<< "bEnableAdaptiveMouse=true\n\n"
79
-
<< "#Enabling this will disable the in game mouse sensitivity controller, and lock the relative sensitivity to a desired variable. [Recommended: User Preference]\n"
80
-
<< "bEnableLockedMouseMulti=true\n\n"
81
-
<< "#This attempts to fix the slowdowns that happen when changing scenes and entering/exiting some menus. Not perfect. [Recommended: keep on]\n"
82
-
<< "bEnableTransitionSpeedRamp=true\n\n";
83
-
84
-
config.close();
100
+
newUserConfig(uConfig, config, false);
85
101
}
86
102
else
87
103
{
@@ -93,7 +109,12 @@ namespace Config {
93
109
{
94
110
refLine = inLine.substr(0, inLine.find("=") + 1);
95
111
96
-
if (refLine == "requestedMinFrameTime=")
112
+
if (refLine == "version=")
113
+
{
114
+
std::string val = inLine.substr(inLine.find("=") + 1);
115
+
uConfig.version = std::stoi(val.c_str());
116
+
}
117
+
elseif (refLine == "requestedMinFrameTime=")
97
118
{
98
119
std::string val = inLine.substr(inLine.find("=") + 1);
0 commit comments