Newline Fix

Good going, GitHub.
This commit is contained in:
Kurt
2015-01-30 20:36:41 -08:00
parent b01dc7dbfc
commit 8f43cf458c

View File

@@ -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
}