mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 02:04:51 -05:00
@@ -27,11 +27,18 @@ public void ReadArguments(IEnumerable<string> args)
|
||||
{
|
||||
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 @@ private static GameVersion GetIsG8SAV(byte[] data)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user