Fixed rewinds not working at all
This commit is contained in:
parent
803dce9a4f
commit
a0000d48f8
@ -92,6 +92,11 @@ class ConfigurationGetter(object):
|
|||||||
"showDurationNotification"
|
"showDurationNotification"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
self._numeric = [
|
||||||
|
"slowdownThreshold",
|
||||||
|
"rewindThreshold"
|
||||||
|
]
|
||||||
|
|
||||||
self._iniStructure = {
|
self._iniStructure = {
|
||||||
"server_data": ["host", "port", "password"],
|
"server_data": ["host", "port", "password"],
|
||||||
"client_settings": ["name", "room", "playerPath", "slowdownThreshold", "rewindThreshold", "slowOnDesync", "rewindOnDesync", "dontSlowDownWithMe", "forceGuiPrompt", "filenamePrivacyMode", "filesizePrivacyMode", "pauseOnLeave"],
|
"client_settings": ["name", "room", "playerPath", "slowdownThreshold", "rewindThreshold", "slowOnDesync", "rewindOnDesync", "dontSlowDownWithMe", "forceGuiPrompt", "filenamePrivacyMode", "filesizePrivacyMode", "pauseOnLeave"],
|
||||||
@ -125,6 +130,10 @@ class ConfigurationGetter(object):
|
|||||||
self._config[key] = True
|
self._config[key] = True
|
||||||
elif self._config[key] == "False":
|
elif self._config[key] == "False":
|
||||||
self._config[key] = False
|
self._config[key] = False
|
||||||
|
|
||||||
|
for key in self._numeric:
|
||||||
|
self._config[key] = float(self._config[key])
|
||||||
|
|
||||||
for key in self._required:
|
for key in self._required:
|
||||||
if key == "playerPath":
|
if key == "playerPath":
|
||||||
player = None
|
player = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user