|
|
|
@ -462,10 +462,12 @@ class Config:
|
|
|
|
|
line = line.strip()
|
|
|
|
|
if line.startswith("#? Config"):
|
|
|
|
|
new_config["version"] = line[line.find("v. ") + 3:]
|
|
|
|
|
for key in self.keys:
|
|
|
|
|
if line.startswith(key):
|
|
|
|
|
line = line.replace(key + "=", "")
|
|
|
|
|
if line.startswith('"'):
|
|
|
|
|
continue
|
|
|
|
|
if not '=' in line:
|
|
|
|
|
continue
|
|
|
|
|
key, line = line.split('=', maxsplit=1)
|
|
|
|
|
if not key in self.keys:
|
|
|
|
|
continue
|
|
|
|
|
line = line.strip('"')
|
|
|
|
|
if type(getattr(self, key)) == int:
|
|
|
|
|
try:
|
|
|
|
|