Bug 1295511 - please add support for game-data-packager provided assets
Summary: please add support for game-data-packager provided assets
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rott
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-04 18:03 UTC by Alexandre Detiste
Modified: 2016-01-16 10:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-16 10:37:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alexandre Detiste 2016-01-04 18:03:31 UTC
game-data-packager will read GOG.com archives
or windows Steam installations and will create .rpm's
for local use that install needed game assets in
/usr/share/rott

it's easy to add optional support for G-D-P
in a non-intrusive way; if this tool it not used,
the ROTT launcher will default to the previous
behaviour (autodownloader or zenity prompt).


--- /usr/bin/rott-shareware     2015-06-19 00:38:45.000000000 +0200
+++ rott-shareware      2016-01-04 18:45:31.187000000 +0100
@@ -2,6 +2,12 @@
 
 set -e
 
+# game assets installed with game-data-packager
+if [ -f /usr/share/rott/REMOTE1.RTS ]; then
+  cd /usr/share/rott
+  exec /usr/bin/rott-shareware.bin "$@"
+fi
+
 mkdir -p $HOME/.rott
 cd $HOME/.rott
 
--- /usr/bin/rott-registered    2015-06-19 00:38:45.000000000 +0200
+++ rott-registered     2016-01-04 18:48:43.264000000 +0100
@@ -2,6 +2,11 @@
 
 set -e
 
+if [ -f /usr/share/rott/DARKWAR.WAD ]; then
+       cd /usr/share/rott
+       exec rott-registered.bin "$@"
+fi
+
 if [ ! -f ~/.rott/registered/*.WAD -a ! -f ~/.rott/registered/*.wad ]; then
        zenity --info --text='In order to play the registered version of Rise of the Triad (ROTT), An Apogee Game, the original registered ROTT datafiles are needed.

Comment 1 Hans de Goede 2016-01-16 10:37:44 UTC
Thanks for the patch, I've added this to the pkg, added appdata / appstream files while at it, and started a new build for rawhide.


Note You need to log in before you can comment on or make changes to this bug.