From 550226e454124936b6de5710650c565ee9c30b12 Mon Sep 17 00:00:00 2001 From: Anatoliy Kashkin Date: Mon, 23 May 2022 02:56:48 +0300 Subject: [PATCH] Collection: Expand `$game` everywhere (#632, #635) --- src/utils/FSUtils.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/FSUtils.vala b/src/utils/FSUtils.vala index c90b72da..f662590d 100644 --- a/src/utils/FSUtils.vala +++ b/src/utils/FSUtils.vala @@ -188,6 +188,7 @@ namespace GameHub.Utils variables.set("platform_name", platform == null ? "." : platform.name()); variables.set("platform", platform == null ? "." : platform.id()); variables.set("game_dir", expand_game_dir(g, platform)); + variables.set("game", g); return FSUtils.expand(instance.dlc, null, variables); } public static string expand_installers(string game, string? dlc=null, Platform? platform=null) @@ -206,6 +207,7 @@ namespace GameHub.Utils { variables.set("game_dir", expand_dlc(g, platform) + "/" + d); } + variables.set("game", g); return FSUtils.expand(instance.installers, null, variables); } public static string expand_bonus(string game, string? dlc=null) @@ -222,6 +224,7 @@ namespace GameHub.Utils { variables.set("game_dir", expand_dlc(g) + "/" + d); } + variables.set("game", g); return FSUtils.expand(instance.bonus, null, variables); } @@ -267,6 +270,7 @@ namespace GameHub.Utils variables.set("platform_name", platform == null ? "." : platform.name()); variables.set("platform", platform == null ? "." : platform.id()); variables.set("game_dir", expand_game_dir(g, platform)); + variables.set("game", g); return FSUtils.expand(instance.installers, null, variables); }