summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Models
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-09 19:46:12 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-09 19:46:12 -0400
commit248ba90b75df31a657978c17ad4c6dff26210c96 (patch)
treeb418ce63a35a89ca20338bf8a6f0f6169293aee4 /src/SMAPI/Framework/Models
parent94e59482fc86da15d2e3f0599f46294b0b82ad62 (diff)
downloadSMAPI-248ba90b75df31a657978c17ad4c6dff26210c96.tar.gz
SMAPI-248ba90b75df31a657978c17ad4c6dff26210c96.tar.bz2
SMAPI-248ba90b75df31a657978c17ad4c6dff26210c96.zip
add metadata dump option for troubleshooting
Diffstat (limited to 'src/SMAPI/Framework/Models')
-rw-r--r--src/SMAPI/Framework/Models/ModFolderExport.cs21
-rw-r--r--src/SMAPI/Framework/Models/SConfig.cs3
2 files changed, 24 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Models/ModFolderExport.cs b/src/SMAPI/Framework/Models/ModFolderExport.cs
new file mode 100644
index 00000000..3b8d451a
--- /dev/null
+++ b/src/SMAPI/Framework/Models/ModFolderExport.cs
@@ -0,0 +1,21 @@
+namespace StardewModdingAPI.Framework.Models
+{
+ /// <summary>Metadata exported to the mod folder.</summary>
+ internal class ModFolderExport
+ {
+ /// <summary>When the export was generated.</summary>
+ public string Exported { get; set; }
+
+ /// <summary>The absolute path of the mod folder.</summary>
+ public string ModFolderPath { get; set; }
+
+ /// <summary>The game version which last loaded the mods.</summary>
+ public string GameVersion { get; set; }
+
+ /// <summary>The SMAPI version which last loaded the mods.</summary>
+ public string ApiVersion { get; set; }
+
+ /// <summary>The detected mods.</summary>
+ public IModMetadata[] Mods { get; set; }
+ }
+}
diff --git a/src/SMAPI/Framework/Models/SConfig.cs b/src/SMAPI/Framework/Models/SConfig.cs
index 98614933..15671af4 100644
--- a/src/SMAPI/Framework/Models/SConfig.cs
+++ b/src/SMAPI/Framework/Models/SConfig.cs
@@ -26,6 +26,9 @@ namespace StardewModdingAPI.Framework.Models
/// <summary>Whether SMAPI should log more information about the game context.</summary>
public bool VerboseLogging { get; set; }
+ /// <summary>Whether to generate a file in the mods folder with detailed metadata about the detected mods.</summary>
+ public bool DumpMetadata { get; set; }
+
/// <summary>The console color scheme to use.</summary>
public MonitorColorScheme ColorScheme { get; set; }