Skip to content

Commit c59b65d

Browse files
committed
Switched to modern technique for getting current directory
1 parent cb12c83 commit c59b65d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ZuneModCore/Mods/VideoSyncMod.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public class VideoSyncMod : Mod
3434
File.Copy(WMVCORE_PATH, Path.Combine(StorageDirectory, "WMVCORE.original.dll"), true);
3535

3636
// Get the working WMVCORE.dll
37-
string sourcePath = Path.Combine(
38-
Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)!, "Resources\\WMVCORE.dll");
37+
string sourcePath = Path.Combine(AppContext.BaseDirectory, "Resources\\WMVCORE.dll");
3938

4039
// Get the original WMVCORE.dll
4140
FileInfo wmvDllInfo = new(WMVCORE_PATH);

0 commit comments

Comments
 (0)