Skip to content

Commit

Permalink
Launcher settings plugins page did not respect new FS-UAE/System dire…
Browse files Browse the repository at this point in the history
…ctory
  • Loading branch information
FrodeSolheim committed Nov 21, 2021
1 parent ce8d059 commit c01eb36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Version 3.1.x:

* Launcher settings plugins page did not respect new FS-UAE/System directory.
* Remove empty "Directories" settings page.
* Fix disappearing configs when base_dir is specified with a trailing slash.
* Prefer $HOME/FS-UAE if it exists, otherwise use $DOCUMENTS/FS-UAE.
Expand Down
13 changes: 6 additions & 7 deletions fsgs/FSGSDirectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,13 @@ def get_themes_dir(cls):
return path

@classmethod
@lru_cache()
def get_plugins_dir(cls):
path = cls.portable_dir("plugins_dir")
if not path:
if openretro:
path = os.path.join(cls.get_data_dir(), "Plugins")
else:
path = os.path.join(cls.get_base_dir(), "Plugins")
return cls.get_system_dir()

@classmethod
@lru_cache()
def get_system_dir(cls):
path = os.path.join(cls.get_base_dir(), "System")
if not os.path.exists(path):
os.makedirs(path)
return path
Expand Down

0 comments on commit c01eb36

Please sign in to comment.