We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb12c83 commit c59b65dCopy full SHA for c59b65d
1 file changed
ZuneModCore/Mods/VideoSyncMod.cs
@@ -34,8 +34,7 @@ public class VideoSyncMod : Mod
34
File.Copy(WMVCORE_PATH, Path.Combine(StorageDirectory, "WMVCORE.original.dll"), true);
35
36
// Get the working WMVCORE.dll
37
- string sourcePath = Path.Combine(
38
- Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)!, "Resources\\WMVCORE.dll");
+ string sourcePath = Path.Combine(AppContext.BaseDirectory, "Resources\\WMVCORE.dll");
39
40
// Get the original WMVCORE.dll
41
FileInfo wmvDllInfo = new(WMVCORE_PATH);
0 commit comments