[Save/Sync] In-Progress ModConfigXml loading rewrite.

+ Fixed async operations lock for Dispose() pattern in working files.
+ Rewrote StorageService.cs:
--- Now uses ContentPath instead of raw strings where possible.
--- Now throws exceptions for developer errors and critical program states.
+ Rewrote ModConfigService.cs:
--- All functions are now completely async.
+ Removed ConfigProfilesResources completely as they exist in common Config xml files.
+ Somewhat simplified package data and processes.
This commit is contained in:
MapleWheels
2026-01-08 11:35:34 -05:00
committed by Maplewheels
parent 42acb32c69
commit 3e81e27160
15 changed files with 651 additions and 347 deletions
@@ -27,7 +27,6 @@ public partial class PackageManagementService : IPackageManagementService
}
public ImmutableArray<IConfigResourceInfo> Configs { get; }
public ImmutableArray<IConfigProfileResourceInfo> ConfigProfiles { get; }
public ImmutableArray<ILuaScriptResourceInfo> LuaScripts { get; }
public ImmutableArray<IAssemblyResourceInfo> Assemblies { get; }
public async Task<FluentResults.Result> LoadPackageInfosAsync(ContentPackage package)
@@ -75,11 +74,6 @@ public partial class PackageManagementService : IPackageManagementService
throw new System.NotImplementedException();
}
public Result<IConfigProfilesResourcesInfo> GetConfigProfilesInfos(ContentPackage package, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();
}
public Result<ILuaScriptsResourcesInfo> GetLuaScriptsInfos(ContentPackage package, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();
@@ -95,11 +89,6 @@ public partial class PackageManagementService : IPackageManagementService
throw new System.NotImplementedException();
}
public Result<IConfigProfilesResourcesInfo> GetConfigProfilesInfos(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();
}
public Result<ILuaScriptsResourcesInfo> GetLuaScriptsInfos(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();
@@ -115,11 +104,6 @@ public partial class PackageManagementService : IPackageManagementService
throw new System.NotImplementedException();
}
public async Task<Result<IConfigProfilesResourcesInfo>> GetConfigProfilesInfosAsync(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();
}
public async Task<Result<ILuaScriptsResourcesInfo>> GetLuaScriptsInfosAsync(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
{
throw new System.NotImplementedException();