mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Add custom-name directive to scripts (Fixes #715)
This commit is contained in:
parent
1df92f8f34
commit
eb13f57aeb
|
@ -57,6 +57,17 @@ Example: ``main_file: game.rom``
|
||||||
For web games, specify the game's URL (or filename) with ``main_file``.
|
For web games, specify the game's URL (or filename) with ``main_file``.
|
||||||
Example: ``main_file: http://www...``
|
Example: ``main_file: http://www...``
|
||||||
|
|
||||||
|
Customizing the game's name
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
Use the ``custom-name`` directive to override the name of the game. Use this
|
||||||
|
only if the installer provides a significantly different game from the base
|
||||||
|
one.
|
||||||
|
(Note: In a future update, custom names will be added as game aliases so they
|
||||||
|
can be searchable)
|
||||||
|
|
||||||
|
Example: ``custom-name: Quake Champions: Doom Edition``
|
||||||
|
|
||||||
Presetting game parameters
|
Presetting game parameters
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ class ScriptInterpreter(CommandsMixin):
|
||||||
self.slug = installer['slug']
|
self.slug = installer['slug']
|
||||||
self.year = installer.get('year')
|
self.year = installer.get('year')
|
||||||
self.runner = installer['runner']
|
self.runner = installer['runner']
|
||||||
self.game_name = installer['name']
|
self.game_name = self.script.get('custom-name') or installer['name']
|
||||||
self.game_slug = installer['game_slug']
|
self.game_slug = installer['game_slug']
|
||||||
self.steamid = installer.get('steamid')
|
self.steamid = installer.get('steamid')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue