mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
parent
f23490f02a
commit
692898fe46
2 changed files with 11 additions and 1 deletions
|
@ -27,11 +27,18 @@ namespace PKHeX.Core
|
|||
{
|
||||
var other = FileUtil.GetSupportedFile(path, SAV);
|
||||
if (other is SaveFile s)
|
||||
{
|
||||
s.Metadata.SetExtraInfo(path);
|
||||
SAV = s;
|
||||
}
|
||||
else if (other is PKM pkm)
|
||||
{
|
||||
Entity = pkm;
|
||||
}
|
||||
else if (other is not null)
|
||||
{
|
||||
Extra.Add(other);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -545,7 +545,10 @@ namespace PKHeX.Core
|
|||
if (sav == null)
|
||||
continue;
|
||||
|
||||
sav.Metadata.SetExtraInfo(split.Header, split.Footer);
|
||||
var meta = sav.Metadata;
|
||||
meta.SetExtraInfo(split.Header, split.Footer);
|
||||
if (path is not null)
|
||||
meta.SetExtraInfo(path);
|
||||
return sav;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue