From 38e907427ee3aad2d2e30f7aa1109b4bf4943b7b Mon Sep 17 00:00:00 2001 From: Matthew Schwartz Date: Mon, 7 Oct 2024 23:41:38 -0700 Subject: [PATCH] script: use "display" instead of "value" in debug output "value" is not used or defined in either device's lua config. Instead, use "display" for the debug output string. Fixes a coredump when entering gamescope-session on ROG Ally. --- scripts/00-gamescope/displays/asus.rogally.lcd.lua | 2 +- scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/00-gamescope/displays/asus.rogally.lcd.lua b/scripts/00-gamescope/displays/asus.rogally.lcd.lua index ee4553734..11ba7cc30 100644 --- a/scripts/00-gamescope/displays/asus.rogally.lcd.lua +++ b/scripts/00-gamescope/displays/asus.rogally.lcd.lua @@ -66,7 +66,7 @@ gamescope.config.known_displays.rogally_lcd = { -- ROG Ally + ROG Ally X. matches = function(display) if display.vendor == "TMX" and display.model == "TL070FVXS01-0" and display.product == 0x0002 then - debug("[rogally_lcd] Matched vendor: "..value.vendor.." model: "..value.model.." product:"..value.product) + debug("[rogally_lcd] Matched vendor: "..display.vendor.." model: "..display.model.." product:"..display.product) return 5000 end return -1 diff --git a/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua b/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua index b23990e86..11ed82fa3 100644 --- a/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua +++ b/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua @@ -39,7 +39,7 @@ gamescope.config.known_displays.steamdeck_deckhd_lcd = { end, matches = function(display) if display.vendor == "DHD" and display.model == "DeckHD-1200p" and display.product == 0x4001 then - debug("[steamdeck_deckhd_lcd] Matched vendor: "..value.vendor.." model: "..value.model.." product:"..value.product) + debug("[steamdeck_deckhd_lcd] Matched vendor: "..display.vendor.." model: "..display.model.." product:"..display.product) return 5000 end