Shell now syncs its active game with the mod's base game.

This commit is contained in:
That_One_Nerd 2023-05-18 11:06:28 -04:00
parent 3a961fffbb
commit 287cd26bcb

View File

@ -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";