Merge pull request #1435 from goaaats/new_storage

This commit is contained in:
goat 2023-09-29 18:51:06 +02:00 committed by GitHub
commit 979dc825b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 478 additions and 29 deletions

View file

@ -343,7 +343,7 @@ public sealed class DalamudPluginInterface : IDisposable
if (currentConfig == null)
return;
this.configs.Save(currentConfig, this.plugin.InternalName);
this.configs.Save(currentConfig, this.plugin.InternalName, this.plugin.Manifest.WorkingPluginId);
}
/// <summary>
@ -370,7 +370,7 @@ public sealed class DalamudPluginInterface : IDisposable
}
// this shouldn't be a thing, I think, but just in case
return this.configs.Load(this.plugin.InternalName);
return this.configs.Load(this.plugin.InternalName, this.plugin.Manifest.WorkingPluginId);
}
/// <summary>

View file

@ -836,7 +836,7 @@ internal partial class PluginManager : IDisposable, IServiceType
var manifestFile = LocalPluginManifest.GetManifestFile(dllFile);
// We need to save the repoManifest due to how the repo fills in some fields that authors are not expected to use.
File.WriteAllText(manifestFile.FullName, JsonConvert.SerializeObject(repoManifest, Formatting.Indented));
Util.WriteAllTextSafe(manifestFile.FullName, JsonConvert.SerializeObject(repoManifest, Formatting.Indented));
// Reload as a local manifest, add some attributes, and save again.
var manifest = LocalPluginManifest.Load(manifestFile);