summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-19 00:40:12 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-11-28 00:01:46 -0500
commit294f2a311ea2cfb590529522c0afae8e5a4f44fd (patch)
treed3e9b0f32a0a6cbd35e7838b7a234ff7d60354b2 /src/SMAPI.Installer
parent89c98223ebf6bfeee5ef587ab748995e09dd4310 (diff)
downloadSMAPI-294f2a311ea2cfb590529522c0afae8e5a4f44fd.tar.gz
SMAPI-294f2a311ea2cfb590529522c0afae8e5a4f44fd.tar.bz2
SMAPI-294f2a311ea2cfb590529522c0afae8e5a4f44fd.zip
fix error resolving native DLLs like libSkiaSharp
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index 714a959b..d8c27a2d 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -410,6 +410,14 @@ namespace StardewModdingApi.Installer
}
}
+ // copy the game's deps.json file
+ // (This is needed to resolve native DLLs like libSkiaSharp.)
+ File.Copy(
+ sourceFileName: Path.Combine(paths.GamePath, "Stardew Valley.deps.json"),
+ destFileName: Path.Combine(paths.GamePath, "StardewModdingAPI.deps.json"),
+ overwrite: true
+ );
+
// create mods directory (if needed)
if (!paths.ModsDir.Exists)
{