diff --git a/FoxTool/FoxTool.csproj b/FoxTool/FoxTool.csproj index 1b61f08..e1e457e 100644 --- a/FoxTool/FoxTool.csproj +++ b/FoxTool/FoxTool.csproj @@ -449,7 +449,7 @@ - + Always diff --git a/FoxTool/Program.cs b/FoxTool/Program.cs index b319815..77c08b4 100644 --- a/FoxTool/Program.cs +++ b/FoxTool/Program.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Reflection; using FoxTool.Fox; namespace FoxTool @@ -123,8 +124,8 @@ private static void DecompileFile(string path) { try { - Console.WriteLine("Reading Dictionary.txt"); - ReadGlobalHashNameDictionary("Dictionary.txt"); + Console.WriteLine("Reading dictionary"); + ReadGlobalHashNameDictionary(); } catch (Exception e) { @@ -213,8 +214,10 @@ private static List GetFileList(DirectoryInfo fileDirectory, bool recu return files; } - private static void ReadGlobalHashNameDictionary(string path) + private static void ReadGlobalHashNameDictionary() { + string executingAssemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); + string path = Path.Combine(executingAssemblyLocation, "fox_dictionary.txt"); foreach (var line in File.ReadAllLines(path)) { ulong hash = Hashing.HashString(line); diff --git a/FoxTool/Properties/AssemblyInfo.cs b/FoxTool/Properties/AssemblyInfo.cs index 0ad7cc0..34e87e2 100644 --- a/FoxTool/Properties/AssemblyInfo.cs +++ b/FoxTool/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("561aab12-c53d-4a0e-bac5-0efc04a54618")] -[assembly: AssemblyVersion("0.2.2.0")] -[assembly: AssemblyFileVersion("0.2.2.0")] +[assembly: AssemblyVersion("0.2.2.1")] +[assembly: AssemblyFileVersion("0.2.2.1")] diff --git a/FoxTool/Dictionary.txt b/FoxTool/fox_dictionary.txt similarity index 100% rename from FoxTool/Dictionary.txt rename to FoxTool/fox_dictionary.txt