expand post-install instructions, show Steam launch options value (#375)

This commit is contained in:
Jesse Plamondon-Willard 2017-10-29 23:21:14 -04:00
parent e606b074d7
commit 6b5c03da4d
2 changed files with 14 additions and 9 deletions

View File

@ -6,6 +6,7 @@
* Fixed TrainerMod's `player_setlevel` command not also setting XP.
* Renamed the default _TrainerMod_ mod to _Console Commands_ to clarify its purpose.
* Added a log parser service at [log.smapi.io](https://log.smapi.io).
* Added better Steam instructions to the SMAPI installer.
* For modders:
* Added support for public code in reflection API, to simplify mod integrations.

View File

@ -347,22 +347,26 @@ namespace StardewModdingApi.Installer
this.InteractivelyRemoveAppDataMods(platform, modsDir, packagedModsDir);
}
Console.WriteLine();
Console.WriteLine();
/****
** exit
** final instructions
****/
this.PrintColor("Done!", ConsoleColor.DarkGreen);
if (platform == Platform.Windows)
{
this.PrintColor(
action == ScriptAction.Install
? "Don't forget to launch StardewModdingAPI.exe instead of the normal game executable. See the readme.txt for details."
: "If you manually changed shortcuts or Steam to launch SMAPI, don't forget to change those back.",
ConsoleColor.DarkGreen
);
if (action == ScriptAction.Install)
{
this.PrintColor("SMAPI is installed! If you use Steam, set your launch options to enable achievements (see smapi.io/install):", ConsoleColor.DarkGreen);
this.PrintColor($" \"{Path.Combine(installDir.FullName, "StardewModdingAPI.exe")}\" %command%", ConsoleColor.DarkGreen);
Console.WriteLine();
this.PrintColor("If you don't use Steam, launch StardewModdingAPI.exe in your game folder to play with mods.", ConsoleColor.DarkGreen);
}
else
this.PrintColor("SMAPI is removed! If you configured Steam to launch SMAPI, don't forget to clear your launch options.", ConsoleColor.DarkGreen);
}
else if (action == ScriptAction.Install)
this.PrintColor("You can launch the game the same way as before to play with mods.", ConsoleColor.DarkGreen);
this.PrintColor("SMAPI is installed! Launch the game the same way as before to play with mods.", ConsoleColor.DarkGreen);
Console.ReadKey();
}