summaryrefslogtreecommitdiff
path: root/src/SMAPI
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI')
-rw-r--r--src/SMAPI/Framework/Models/ModFolderExport.cs21
-rw-r--r--src/SMAPI/Framework/Models/SConfig.cs6
-rw-r--r--src/SMAPI/Framework/SCore.cs14
-rw-r--r--src/SMAPI/SMAPI.config.json6
4 files changed, 1 insertions, 46 deletions
diff --git a/src/SMAPI/Framework/Models/ModFolderExport.cs b/src/SMAPI/Framework/Models/ModFolderExport.cs
deleted file mode 100644
index 3b8d451a..00000000
--- a/src/SMAPI/Framework/Models/ModFolderExport.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-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 53939f8c..b1612aa4 100644
--- a/src/SMAPI/Framework/Models/SConfig.cs
+++ b/src/SMAPI/Framework/Models/SConfig.cs
@@ -25,8 +25,7 @@ namespace StardewModdingAPI.Framework.Models
[nameof(GitHubProjectName)] = "Pathoschild/SMAPI",
[nameof(WebApiBaseUrl)] = "https://smapi.io/api/",
[nameof(VerboseLogging)] = false,
- [nameof(LogNetworkTraffic)] = false,
- [nameof(DumpMetadata)] = false
+ [nameof(LogNetworkTraffic)] = false
};
/// <summary>The default values for <see cref="SuppressUpdateChecks"/>, to log changes if different.</summary>
@@ -64,9 +63,6 @@ namespace StardewModdingAPI.Framework.Models
/// <summary>Whether SMAPI should log network traffic. Best combined with <see cref="VerboseLogging"/>, which includes network metadata.</summary>
public bool LogNetworkTraffic { 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 colors to use for text written to the SMAPI console.</summary>
public ColorSchemeConfig ConsoleColors { get; set; }
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 6e7c8fcb..dfd77e16 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -435,20 +435,6 @@ namespace StardewModdingAPI.Framework
mods = resolver.ProcessDependencies(mods, modDatabase).ToArray();
this.LoadMods(mods, this.Toolkit.JsonHelper, this.ContentCore, modDatabase);
- // write metadata file
- if (this.Settings.DumpMetadata)
- {
- ModFolderExport export = new ModFolderExport
- {
- Exported = DateTime.UtcNow.ToString("O"),
- ApiVersion = Constants.ApiVersion.ToString(),
- GameVersion = Constants.GameVersion.ToString(),
- ModFolderPath = this.ModsPath,
- Mods = mods
- };
- this.Toolkit.JsonHelper.WriteJsonFile(Path.Combine(Constants.LogDir, $"{Constants.LogNamePrefix}metadata-dump.json"), export);
- }
-
// check for updates
this.CheckForUpdatesAsync(mods);
}
diff --git a/src/SMAPI/SMAPI.config.json b/src/SMAPI/SMAPI.config.json
index a7381b91..824bb783 100644
--- a/src/SMAPI/SMAPI.config.json
+++ b/src/SMAPI/SMAPI.config.json
@@ -60,12 +60,6 @@ The default values are mirrored in StardewModdingAPI.Framework.Models.SConfig to
"LogNetworkTraffic": false,
/**
- * Whether to generate a 'SMAPI-latest.metadata-dump.json' file in the logs folder with the full mod
- * metadata for detected mods. This is only needed when troubleshooting some cases.
- */
- "DumpMetadata": false,
-
- /**
* The colors to use for text written to the SMAPI console.
*
* The possible values for 'UseScheme' are: