update release notes, minor tweaks (#475)
This commit is contained in:
parent
da66a3ef8e
commit
bd146e74e8
|
@ -13,6 +13,7 @@
|
|||
* Added `Context.IsMultiplayer` and `Context.IsMainPlayer` flags.
|
||||
* Fixed assets loaded by temporary content managers not being editable.
|
||||
* Fixed issue where assets didn't reload correctly when the player switches language.
|
||||
* Fixed user command input not saved to log file.
|
||||
* Fixed `helper.ModRegistry.GetApi` interface validation errors not mentioning which interface caused the issue.
|
||||
* **Breaking change**: dropped some deprecated APIs.
|
||||
* **Breaking change**: mods can't intercept chatbox input, including the game's hotkey to toggle the chatbox (default `T`).
|
||||
|
|
|
@ -100,10 +100,11 @@ namespace StardewModdingAPI.Framework
|
|||
this.LogFile.WriteLine("");
|
||||
}
|
||||
|
||||
/// <summary>Writes user input to the log file.</summary>
|
||||
/// <param name="input">The input to write.</param>
|
||||
internal void LogUserInputToFile(string input)
|
||||
/// <summary>Log console input from the user.</summary>
|
||||
/// <param name="input">The user input to log.</param>
|
||||
internal void LogUserInput(string input)
|
||||
{
|
||||
// user input already appears in the console, so just need to write to file
|
||||
if (this.WriteToFile)
|
||||
{
|
||||
string prefix = this.GenerateMessagePrefix(this.Source, LogLevel.Info);
|
||||
|
@ -158,7 +159,7 @@ namespace StardewModdingAPI.Framework
|
|||
this.LogFile.WriteLine(fullMessage);
|
||||
}
|
||||
|
||||
/// <summary>Generates a message prefix for the current time.</summary>
|
||||
/// <summary>Generate a message prefix for the current time.</summary>
|
||||
/// <param name="source">The name of the mod logging the message.</param>
|
||||
/// <param name="level">The log level.</param>
|
||||
private string GenerateMessagePrefix(string source, LogLevel level)
|
||||
|
|
|
@ -449,7 +449,7 @@ namespace StardewModdingAPI
|
|||
continue;
|
||||
|
||||
// write input to log file
|
||||
this.Monitor.LogUserInputToFile(input);
|
||||
this.Monitor.LogUserInput(input);
|
||||
|
||||
// parse input
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue