1
0
mirror of https://github.com/lutris/lutris synced 2024-07-05 08:28:41 +00:00

Add custom-name directive to scripts (Fixes #715)

This commit is contained in:
Mathieu Comandon 2018-05-08 00:24:18 -07:00
parent 1df92f8f34
commit eb13f57aeb
2 changed files with 12 additions and 1 deletions

View File

@ -57,6 +57,17 @@ Example: ``main_file: game.rom``
For web games, specify the game's URL (or filename) with ``main_file``.
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
--------------------------

View File

@ -75,7 +75,7 @@ class ScriptInterpreter(CommandsMixin):
self.slug = installer['slug']
self.year = installer.get('year')
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.steamid = installer.get('steamid')