mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Also remove egl programdata path from config if invalid
This commit is contained in:
parent
7cb2717589
commit
867a661c9d
|
@ -56,6 +56,8 @@ class LegendaryCore:
|
||||||
if self.egl.programdata_path and not os.path.exists(self.egl.programdata_path):
|
if self.egl.programdata_path and not os.path.exists(self.egl.programdata_path):
|
||||||
self.log.error(f'Config EGL ProgramData path ("{self.egl.programdata_path}") is invalid! Please fix.')
|
self.log.error(f'Config EGL ProgramData path ("{self.egl.programdata_path}") is invalid! Please fix.')
|
||||||
self.egl.programdata_path = None
|
self.egl.programdata_path = None
|
||||||
|
self.lgd.config.remove_option('Legendary', 'egl_programdata', fallback=None)
|
||||||
|
self.lgd.save_config()
|
||||||
|
|
||||||
self.local_timezone = datetime.now().astimezone().tzinfo
|
self.local_timezone = datetime.now().astimezone().tzinfo
|
||||||
self.language_code, self.country_code = ('en', 'US')
|
self.language_code, self.country_code = ('en', 'US')
|
||||||
|
|
Loading…
Reference in a new issue