mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 07:15:57 -05:00
Newline Fix
Good going, GitHub.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user