mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-05 21:17:14 -05:00
Cleanup
fixes qr7 import
This commit is contained in:
parent
ca17dd4c76
commit
2b606dfc32
|
|
@ -108,7 +108,7 @@ internal static byte[] getQRData()
|
|||
pkstr = pkstr.Substring(0, pkstr.IndexOf(cap, StringComparison.Ordinal)); // Trim outro
|
||||
try
|
||||
{
|
||||
if (!pkstr.StartsWith("http") && pkstr.StartsWith(BadQRUrl)) // G7
|
||||
if (!pkstr.StartsWith("http") && !pkstr.StartsWith(BadQRUrl)) // G7
|
||||
{
|
||||
string fstr = Regex.Unescape(pkstr);
|
||||
byte[] raw = Encoding.Unicode.GetBytes(fstr);
|
||||
|
|
|
|||
|
|
@ -371,21 +371,21 @@ private static int getMaxSpeciesOrigin(int generation)
|
|||
switch (generation)
|
||||
{
|
||||
case 1:
|
||||
return Legal.MaxSpeciesID_1;
|
||||
return MaxSpeciesID_1;
|
||||
case 2:
|
||||
return Legal.MaxSpeciesID_2;
|
||||
return MaxSpeciesID_2;
|
||||
case 3:
|
||||
return Legal.MaxSpeciesID_3;
|
||||
return MaxSpeciesID_3;
|
||||
case 4:
|
||||
return Legal.MaxSpeciesID_4;
|
||||
return MaxSpeciesID_4;
|
||||
case 5:
|
||||
return Legal.MaxSpeciesID_5;
|
||||
return MaxSpeciesID_5;
|
||||
case 6:
|
||||
return Legal.MaxSpeciesID_6;
|
||||
return MaxSpeciesID_6;
|
||||
case 7:
|
||||
return Legal.MaxSpeciesID_7;
|
||||
return MaxSpeciesID_7;
|
||||
default:
|
||||
return Legal.MaxSpeciesID_7;
|
||||
return MaxSpeciesID_7;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user