Skip to content

Commit 01c6fd9

Browse files
committed
Update to QMod format 2.2.1
1 parent 6467d23 commit 01c6fd9

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

QuestAppVersionSwitcher/Mods/QPMod.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ private async Task PrepareDependency(Dependency dependency, List<string> install
342342
throw new InstallationException($"Dependency with ID {dependency.Id} is already installed but with an incorrect version ({existing.Version} does not intersect {dependency.VersionRange}). Upgrading was not possible as there was no download link provided");
343343
}
344344
}
345+
else if (!dependency.Required)
346+
{
347+
// Dependency is optional so we can stop here since there is no existing install.
348+
return;
349+
}
345350
else if (dependency.DownloadUrlString == null)
346351
{
347352
throw new InstallationException($"Dependency {dependency.Id} is not installed, and the mod depending on it does not specify a download path if missing");

QuestAppVersionSwitcher/QuestAppVersionSwitcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
<Version>1.0.2</Version>
242242
</PackageReference>
243243
<PackageReference Include="QuestPatcher.QMod">
244-
<Version>2.1.0</Version>
244+
<Version>2.2.1</Version>
245245
</PackageReference>
246246
<PackageReference Include="QuestPatcher.Zip">
247247
<Version>1.1.1</Version>

0 commit comments

Comments
 (0)