Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afd1972a76 | ||
|
|
8a7875b843 | ||
|
|
aec8a4efa7 | ||
|
|
2b93a1feeb |
@@ -1,6 +1,6 @@
|
|||||||
# details_window.py
|
# details_window.py
|
||||||
#
|
#
|
||||||
# Copyright 2022-2023 kramo
|
# Copyright 2022-2024 kramo
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -321,7 +321,7 @@ class DetailsDialog(Adw.Dialog):
|
|||||||
self.executable.set_text(shlex.quote(path))
|
self.executable.set_text(shlex.quote(path))
|
||||||
|
|
||||||
def choose_executable(self, *_args: Any) -> None:
|
def choose_executable(self, *_args: Any) -> None:
|
||||||
self.exec_file_dialog.open(self, None, self.set_executable)
|
self.exec_file_dialog.open(self.get_root(), None, self.set_executable)
|
||||||
|
|
||||||
def choose_cover(self, *_args: Any) -> None:
|
def choose_cover(self, *_args: Any) -> None:
|
||||||
self.image_file_dialog.open(self, None, self.set_cover)
|
self.image_file_dialog.open(self.get_root(), None, self.set_cover)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# lutris_source.py
|
# lutris_source.py
|
||||||
#
|
#
|
||||||
# Copyright 2022-2023 kramo
|
# Copyright 2022-2024 kramo
|
||||||
# Copyright 2023 Geoffrey Coulaud
|
# Copyright 2023 Geoffrey Coulaud
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -54,6 +54,9 @@ class LutrisSourceIterable(SourceIterable):
|
|||||||
db_path = copy_db(self.source.locations.data["pga.db"])
|
db_path = copy_db(self.source.locations.data["pga.db"])
|
||||||
connection = connect(db_path)
|
connection = connect(db_path)
|
||||||
cursor = connection.execute(request, params)
|
cursor = connection.execute(request, params)
|
||||||
|
coverart_is_dir = (
|
||||||
|
coverart_path := self.source.locations.data.root / "coverart"
|
||||||
|
).is_dir()
|
||||||
|
|
||||||
# Create games from the DB results
|
# Create games from the DB results
|
||||||
for row in cursor:
|
for row in cursor:
|
||||||
@@ -69,10 +72,12 @@ class LutrisSourceIterable(SourceIterable):
|
|||||||
"executable": self.source.make_executable(game_id=row[0]),
|
"executable": self.source.make_executable(game_id=row[0]),
|
||||||
}
|
}
|
||||||
game = Game(values)
|
game = Game(values)
|
||||||
|
additional_data = {}
|
||||||
|
|
||||||
# Get official image path
|
# Get official image path
|
||||||
image_path = self.source.locations.data["coverart"] / f"{row[2]}.jpg"
|
if coverart_is_dir:
|
||||||
additional_data = {"local_image_path": image_path}
|
image_path = coverart_path / f"{row[2]}.jpg"
|
||||||
|
additional_data["local_image_path"] = image_path
|
||||||
|
|
||||||
yield (game, additional_data)
|
yield (game, additional_data)
|
||||||
|
|
||||||
@@ -111,7 +116,6 @@ class LutrisSource(URLExecutableSource):
|
|||||||
),
|
),
|
||||||
paths={
|
paths={
|
||||||
"pga.db": LocationSubPath("pga.db"),
|
"pga.db": LocationSubPath("pga.db"),
|
||||||
"coverart": LocationSubPath("coverart", True),
|
|
||||||
},
|
},
|
||||||
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
|
invalid_subtitle=Location.DATA_INVALID_SUBTITLE,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -53,6 +53,14 @@
|
|||||||
</screenshots>
|
</screenshots>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="2.8.1" date="2024-03-23">
|
||||||
|
<description translatable="no">
|
||||||
|
<ul>
|
||||||
|
<li>Fixes an issue with Lutris games not importing</li>
|
||||||
|
<li>Fixes an issue with file chooser buttons being unresponsive</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
<release version="2.8" date="2024-03-20">
|
<release version="2.8" date="2024-03-20">
|
||||||
<description translatable="no">
|
<description translatable="no">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
project('cartridges',
|
project('cartridges',
|
||||||
version: '2.8',
|
version: '2.8.1',
|
||||||
meson_version: '>= 0.59.0',
|
meson_version: '>= 0.59.0',
|
||||||
default_options: [ 'warning_level=2', 'werror=false', ],
|
default_options: [ 'warning_level=2', 'werror=false', ],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user