-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
339 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"Name": "Console Commands", | ||
"Author": "SMAPI", | ||
"Version": "3.14.0", | ||
"Version": "3.14.1", | ||
"Description": "Adds SMAPI console commands that let you manipulate the game.", | ||
"UniqueID": "SMAPI.ConsoleCommands", | ||
"EntryDll": "ConsoleCommands.dll", | ||
"MinimumApiVersion": "3.14.0" | ||
"MinimumApiVersion": "3.14.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"Name": "Error Handler", | ||
"Author": "SMAPI", | ||
"Version": "3.14.0", | ||
"Version": "3.14.1", | ||
"Description": "Handles some common vanilla errors to log more useful info or avoid breaking the game.", | ||
"UniqueID": "SMAPI.ErrorHandler", | ||
"EntryDll": "ErrorHandler.dll", | ||
"MinimumApiVersion": "3.14.0" | ||
"MinimumApiVersion": "3.14.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"Name": "Save Backup", | ||
"Author": "SMAPI", | ||
"Version": "3.14.0", | ||
"Version": "3.14.1", | ||
"Description": "Automatically backs up all your saves once per day into its folder.", | ||
"UniqueID": "SMAPI.SaveBackup", | ||
"EntryDll": "SaveBackup.dll", | ||
"MinimumApiVersion": "3.14.0" | ||
"MinimumApiVersion": "3.14.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/SMAPI.Toolkit/Utilities/PathLookups/IFilePathLookup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace StardewModdingAPI.Toolkit.Utilities.PathLookups | ||
{ | ||
/// <summary>An API for relative path lookups within a root directory.</summary> | ||
internal interface IFilePathLookup | ||
{ | ||
/// <summary>Get the actual path for a given relative file path.</summary> | ||
/// <param name="relativePath">The relative path.</param> | ||
/// <remarks>Returns the resolved path in file path format, else the normalized <paramref name="relativePath"/>.</remarks> | ||
string GetFilePath(string relativePath); | ||
|
||
/// <summary>Get the actual path for a given asset name.</summary> | ||
/// <param name="relativePath">The relative path.</param> | ||
/// <remarks>Returns the resolved path in asset name format, else the normalized <paramref name="relativePath"/>.</remarks> | ||
string GetAssetName(string relativePath); | ||
|
||
/// <summary>Add a relative path that was just created by a SMAPI API.</summary> | ||
/// <param name="relativePath">The relative path. This must already be normalized in asset name or file path format.</param> | ||
void Add(string relativePath); | ||
} | ||
} |
Oops, something went wrong.