Limit splits to 2 elements when reading libretro config (Closes #1737)

This commit is contained in:
Mathieu Comandon 2019-02-08 12:26:38 -08:00
parent 6dae319d77
commit e0d183bea9

View file

@ -18,7 +18,7 @@ class RetroConfig:
line = line.strip()
if line == "" or line.startswith('#'):
continue
key, value = line.split("=")
key, value = line.split("=", 1)
key = key.strip()
value = value.strip().strip('"')
if not key or not value: