Fix for game update when launcher has not been updated
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (NuGet) (push) Successful in 1m0s
Build / Build Nuget package (SharedCringe) (push) Successful in 1m0s
Build / Build Nuget package (CringePlugins) (push) Successful in 1m16s
Build / Build Launcher (push) Successful in 1m51s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 3m8s

Switch to ModScriptCompilerPatch for pb unloading
This commit is contained in:
2025-05-13 20:32:43 -04:00
parent 78880d2a78
commit a87161f2f5
4 changed files with 133 additions and 122 deletions

View File

@@ -101,7 +101,8 @@ public static class BuiltInPackages
private static Dependency AsDependency(this ResolvedPackage package, ImmutableDictionary<ManifestPackageKey, DependencyLibrary> libraries)
{
if (!libraries.ContainsKey(new(package.Package.Id, package.Package.Version)))
//ignore the SE reference because the game can update without a launcher update
if (package.Entry.Id != SeReferenceAssemblies && !libraries.ContainsKey(new(package.Package.Id, package.Package.Version)))
throw new KeyNotFoundException($"Package {package.Package} not found in root dependencies manifest");
return new Dependency(package.Package.Id, new(package.Package.Version));