summaryrefslogtreecommitdiff
path: root/src/TrainerMod
diff options
context:
space:
mode:
Diffstat (limited to 'src/TrainerMod')
-rw-r--r--src/TrainerMod/TrainerMod.cs8
-rw-r--r--src/TrainerMod/manifest.json2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs
index 95c7cbaf..9a3a8d0b 100644
--- a/src/TrainerMod/TrainerMod.cs
+++ b/src/TrainerMod/TrainerMod.cs
@@ -124,9 +124,15 @@ namespace TrainerMod
switch (command)
{
case "debug":
+ // submit command
string debugCommand = string.Join(" ", args);
- this.Monitor.Log($"Sending debug command to the game: {debugCommand}...", LogLevel.Info);
+ string oldOutput = Game1.debugOutput;
Game1.game1.parseDebugInput(debugCommand);
+
+ // show result
+ this.Monitor.Log(Game1.debugOutput != oldOutput
+ ? $"> {Game1.debugOutput}"
+ : "Sent debug command to the game, but there was no output.", LogLevel.Info);
break;
case "save":
diff --git a/src/TrainerMod/manifest.json b/src/TrainerMod/manifest.json
index 8bddf02d..1232a365 100644
--- a/src/TrainerMod/manifest.json
+++ b/src/TrainerMod/manifest.json
@@ -3,7 +3,7 @@
"Author": "SMAPI",
"Version": {
"MajorVersion": 1,
- "MinorVersion": 9,
+ "MinorVersion": 14,
"PatchVersion": 0,
"Build": null
},