Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from i30817/i30817-patch-1
Browse files Browse the repository at this point in the history
Update version. Find retroarch.cfg in android. Add new RetroArch config file scan property that allows refresh playlist to replace the whole file.
  • Loading branch information
i30817 authored Dec 3, 2023
2 parents 6a72dac + 93e12d4 commit 843e024
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libretro_scummvm_playlist/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.4.1'
__version__ = '2.4.2'
3 changes: 3 additions & 0 deletions libretro_scummvm_playlist/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
CONFIG = Path(var, 'RetroArch', 'retroarch.cfg')
elif sys.platform == 'darwin':
CONFIG = Path(Path.home(), 'Library', 'Application Support', 'RetroArch', 'config', 'retroarch.cfg')
elif hasattr(sys, 'getandroidapilevel'):
CONFIG = Path("/", "storage", "emulated", "0", "Android", "data", "com.retroarch.aarch64", "files", "retroarch.cfg")
else: #all the rest based on linux. If they arent based on linux, they'll try the else and fail harmlessly later
var = os.getenv('XDG_CONFIG_HOME')
if var:
Expand Down Expand Up @@ -238,6 +240,7 @@ def mainaux(cfg: Path = typer.Argument(CONFIG, help='Path to the retroarch cfg f
'scan_search_recursively': True,
'scan_search_archives': False,
'scan_filter_dat_content': False,
'scan_overwrite_playlist': True,
'items': []
}
invalid_paths = []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "libretro_scummvm_playlist"
version = "2.4.1"
version = "2.4.2"
description = "libretro scummvm playlist builder"
authors = ["i30817 <[email protected]>"]

Expand Down

0 comments on commit 843e024

Please sign in to comment.