From c9c4bfb6ebd037bf8ac81744b13df3dc5ea165ea Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Thu, 26 Jun 2014 15:38:14 +0200 Subject: [PATCH] Line endings --- OpenMetaverse/Helpers.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/OpenMetaverse/Helpers.cs b/OpenMetaverse/Helpers.cs index 5eeb1bb9..03de40b2 100644 --- a/OpenMetaverse/Helpers.cs +++ b/OpenMetaverse/Helpers.cs @@ -457,15 +457,15 @@ namespace OpenMetaverse public static System.IO.Stream GetResourceStream(string resourceName, string searchPath) { if (searchPath != null) - { - Assembly gea = Assembly.GetEntryAssembly(); - if (gea == null) gea = typeof (Helpers).Assembly; - string dirname = "."; - if (gea != null && gea.Location != null) - { - dirname = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(gea.Location), searchPath); - } - + { + Assembly gea = Assembly.GetEntryAssembly(); + if (gea == null) gea = typeof (Helpers).Assembly; + string dirname = "."; + if (gea != null && gea.Location != null) + { + dirname = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(gea.Location), searchPath); + } + string filename = System.IO.Path.Combine(dirname, resourceName); try {