From 8f43cf458c7e85960fb27eaa155f6d67ec65ad6d Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 30 Jan 2015 20:36:41 -0800 Subject: [PATCH] Newline Fix Good going, GitHub. --- Misc/Util.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Misc/Util.cs b/Misc/Util.cs index 6b4f1dd06..a9664e3d5 100644 --- a/Misc/Util.cs +++ b/Misc/Util.cs @@ -131,7 +131,7 @@ internal static string get3DSLocation() string[] DriveList = Environment.GetLogicalDrives(); for (int i = 1; i < DriveList.Length; i++) // Skip first drive (some users still have floppy drives and would chew up time!) { - string potentialPath = NormalizePath(Path.Combine(DriveList[i], "filer" + Path.DirectorySeparatorChar + "UserSaveData")); + string potentialPath = DriveList[i] + Path.DirectorySeparatorChar + "Nintendo 3DS"; if (Directory.Exists(potentialPath)) { path_3DS = potentialPath; break; } } @@ -330,8 +330,7 @@ internal static void TranslateInterface(Control form, string lang, MenuStrip men object txt; txt = Properties.Resources.ResourceManager.GetObject("lang_" + lang); // Fetch File, \n to list. if (txt == null) return; // Translation file does not exist as a resource; abort this function and don't translate UI. - string[] stringSeparators = new string[] { "\r\n" }; // Resource files are notepad compatible - rawlist = ((string)txt).Split(stringSeparators, StringSplitOptions.None); + rawlist = ((string)txt).Split(new string[] { "\r\n" }, StringSplitOptions.None); rawlist = rawlist.Select(i => i.Trim()).ToArray(); // Remove trailing spaces }