From 9af7f1c0d072d4ede3d4fe59826911642d7a7de6 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 9 Oct 2022 12:45:48 -0400 Subject: [PATCH] Fix MT shader descriptors path --- File_Format_Library/FileFormats/MT/MT_Globals.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/MT/MT_Globals.cs b/File_Format_Library/FileFormats/MT/MT_Globals.cs index 5660496e..8aaf9fb5 100644 --- a/File_Format_Library/FileFormats/MT/MT_Globals.cs +++ b/File_Format_Library/FileFormats/MT/MT_Globals.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.IO; using System.Text; using Toolbox.Library.Security.Cryptography; +using Toolbox.Library; namespace CafeLibrary.M2 { @@ -26,7 +27,7 @@ namespace CafeLibrary.M2 attGroups = new Dictionary(); - foreach (var file in Directory.GetFiles(Path.Combine("Lib", "MTVertexFormats"))) + foreach (var file in Directory.GetFiles(Path.Combine(Runtime.ExecutableDir, "Lib", "MTVertexFormats"))) { LoadPresets(file); }