Shell now syncs its active game with the mod's base game.
This commit is contained in:
parent
3a961fffbb
commit
287cd26bcb
@ -161,7 +161,7 @@ public class Shell
|
|||||||
}
|
}
|
||||||
else Write($"{WorkingDirectory}", ConsoleColor.DarkGreen, false);
|
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(null);
|
||||||
|
|
||||||
Write($" {Name}", ConsoleColor.DarkCyan, false);
|
Write($" {Name}", ConsoleColor.DarkCyan, false);
|
||||||
@ -323,6 +323,7 @@ public class Shell
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
ActiveMod = Mod.ReadDirectory(WorkingDirectory);
|
ActiveMod = Mod.ReadDirectory(WorkingDirectory);
|
||||||
|
ActiveGame = ActiveMod?.BaseGame;
|
||||||
|
|
||||||
// Update title.
|
// Update title.
|
||||||
string title = "SrcMod";
|
string title = "SrcMod";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user