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_Region = Geo1_Region;
|
||||
|
||||
Geo1_Country = Country;
|
||||
Geo1_Region = Region;
|
||||
Geo1_Country = GeoCountry;
|
||||
Geo1_Region = GeoRegion;
|
||||
}
|
||||
public void TradeMemory(bool Bank)
|
||||
{
|
||||
|
|
10
Misc/SAV6.cs
10
Misc/SAV6.cs
|
@ -570,9 +570,8 @@ namespace PKHeX
|
|||
setPK6(pk6);
|
||||
if (dex ?? SetUpdateDex)
|
||||
setDex(pk6);
|
||||
|
||||
Array.Resize(ref ek6, PK6.SIZE_STORED);
|
||||
setData(ek6, offset);
|
||||
|
||||
setData(pk6.EncryptedBoxData, offset);
|
||||
Edited = true;
|
||||
}
|
||||
public void setEK6Party(byte[] ek6, int offset, bool? trade = null, bool? dex = null)
|
||||
|
@ -583,9 +582,8 @@ namespace PKHeX
|
|||
setPK6(pk6);
|
||||
if (dex ?? SetUpdateDex)
|
||||
setDex(pk6);
|
||||
|
||||
Array.Resize(ref ek6, PK6.SIZE_PARTY);
|
||||
setData(ek6, offset);
|
||||
|
||||
setData(pk6.EncryptedPartyData, offset);
|
||||
Edited = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue