diff --git a/Resources/ScriptLoader.cs b/Resources/ScriptLoader.cs index 22d41929..aacceb11 100644 --- a/Resources/ScriptLoader.cs +++ b/Resources/ScriptLoader.cs @@ -7,7 +7,7 @@ namespace TweetDck.Resources{ static class ScriptLoader{ public static string LoadResource(string name){ try{ - return File.ReadAllText(name,Encoding.UTF8); + return File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,name),Encoding.UTF8); }catch(Exception ex){ MessageBox.Show("Unfortunately, "+Program.BrandName+" could not load the "+name+" file. The program will continue running with limited functionality.\r\n\r\n"+ex.Message,Program.BrandName+" Has Failed :(",MessageBoxButtons.OK,MessageBoxIcon.Error); return null;