diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-19 00:40:12 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-11-28 00:01:46 -0500 |
| commit | 294f2a311ea2cfb590529522c0afae8e5a4f44fd (patch) | |
| tree | d3e9b0f32a0a6cbd35e7838b7a234ff7d60354b2 /src/SMAPI.Installer | |
| parent | 89c98223ebf6bfeee5ef587ab748995e09dd4310 (diff) | |
| download | SMAPI-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.cs | 8 |
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) { |
