mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
Fix drag&drop and geolocation
PK6.cs now sets the SAV country/region instead of the pk6's. SAV6.cs now sets the updated pk6 instead of the input ek6. Thanks Dede!
This commit is contained in:
parent
be63fe7b7f
commit
844e24024b
2 changed files with 6 additions and 8 deletions
|
@ -726,8 +726,8 @@ namespace PKHeX
|
||||||
Geo2_Country = Geo1_Country;
|
Geo2_Country = Geo1_Country;
|
||||||
Geo2_Region = Geo1_Region;
|
Geo2_Region = Geo1_Region;
|
||||||
|
|
||||||
Geo1_Country = Country;
|
Geo1_Country = GeoCountry;
|
||||||
Geo1_Region = Region;
|
Geo1_Region = GeoRegion;
|
||||||
}
|
}
|
||||||
public void TradeMemory(bool Bank)
|
public void TradeMemory(bool Bank)
|
||||||
{
|
{
|
||||||
|
|
|
@ -571,8 +571,7 @@ namespace PKHeX
|
||||||
if (dex ?? SetUpdateDex)
|
if (dex ?? SetUpdateDex)
|
||||||
setDex(pk6);
|
setDex(pk6);
|
||||||
|
|
||||||
Array.Resize(ref ek6, PK6.SIZE_STORED);
|
setData(pk6.EncryptedBoxData, offset);
|
||||||
setData(ek6, offset);
|
|
||||||
Edited = true;
|
Edited = true;
|
||||||
}
|
}
|
||||||
public void setEK6Party(byte[] ek6, int offset, bool? trade = null, bool? dex = null)
|
public void setEK6Party(byte[] ek6, int offset, bool? trade = null, bool? dex = null)
|
||||||
|
@ -584,8 +583,7 @@ namespace PKHeX
|
||||||
if (dex ?? SetUpdateDex)
|
if (dex ?? SetUpdateDex)
|
||||||
setDex(pk6);
|
setDex(pk6);
|
||||||
|
|
||||||
Array.Resize(ref ek6, PK6.SIZE_PARTY);
|
setData(pk6.EncryptedPartyData, offset);
|
||||||
setData(ek6, offset);
|
|
||||||
Edited = true;
|
Edited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue