From 287cd26bcb2211ee8defc6d97d043556c7b18066 Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Thu, 18 May 2023 11:06:28 -0400 Subject: [PATCH] Shell now syncs its active game with the mod's base game. --- SrcMod/Shell/Shell.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SrcMod/Shell/Shell.cs b/SrcMod/Shell/Shell.cs index ffa2383..766e479 100644 --- a/SrcMod/Shell/Shell.cs +++ b/SrcMod/Shell/Shell.cs @@ -161,7 +161,7 @@ public class Shell } else Write($"{WorkingDirectory}", ConsoleColor.DarkGreen, false); - if (ActiveGame is not null) Write($" ({ActiveGame})", ConsoleColor.DarkYellow, false); + if (ActiveGame is not null) Write($" ({ActiveGame})", ConsoleColor.Blue, false); Write(null); Write($" {Name}", ConsoleColor.DarkCyan, false); @@ -323,6 +323,7 @@ public class Shell try { ActiveMod = Mod.ReadDirectory(WorkingDirectory); + ActiveGame = ActiveMod?.BaseGame; // Update title. string title = "SrcMod";