mirror of
https://github.com/lutris/lutris
synced 2024-10-15 04:02:21 +00:00
Add "Custom Settings" string for gamescope
An easy way to add extra flags to gamescope.
This commit is contained in:
parent
9f9fedabf4
commit
c942fc308a
|
@ -118,6 +118,9 @@ def get_gamescope_args(launch_arguments, system_config):
|
|||
launch_arguments.insert(0, gamescope_fsr_sharpness)
|
||||
launch_arguments.insert(0, "--fsr-sharpness")
|
||||
launch_arguments.insert(0, "-U")
|
||||
if system_config.get("gamescope_flags"):
|
||||
gamescope_flags = system_config["gamescope_flags"]
|
||||
launch_arguments.insert(0, gamescope_flags)
|
||||
if system_config.get("gamescope_window_mode"):
|
||||
gamescope_window_mode = system_config["gamescope_window_mode"]
|
||||
launch_arguments.insert(0, gamescope_window_mode)
|
||||
|
|
|
@ -356,6 +356,18 @@ system_options = [ # pylint: disable=invalid-name
|
|||
"\n"
|
||||
"<b>Empty string:</b> Disabled"),
|
||||
},
|
||||
{
|
||||
"section": "Gamescope",
|
||||
"option": "gamescope_flags",
|
||||
"label": _("Custom Settings"),
|
||||
"advanced": True,
|
||||
"type": "string",
|
||||
"condition": bool(system.find_executable("gamescope")),
|
||||
"help": _("Set additional flags for gamescope (if available).\n"
|
||||
"See 'gamescope --help' for a full list of options.\n"
|
||||
"\n"
|
||||
"<b>Empty String:</b> Disabled"),
|
||||
},
|
||||
{
|
||||
"section": "CPU",
|
||||
"option": "single_cpu",
|
||||
|
|
Loading…
Reference in a new issue