Make non-exportable saves (fake) act as VC saves

https://github.com/kwsch/PKHeX/issues/2600#issuecomment-569125853
This commit is contained in:
Kurt 2019-12-26 12:21:35 -08:00
parent 06348096aa
commit 420307d4bf

View file

@ -58,8 +58,7 @@
ActiveTrainer = sav; ActiveTrainer = sav;
if (sav.Generation >= 3) if (sav.Generation >= 3)
return AllowGBCartEra = false; return AllowGBCartEra = false;
var path = sav.FileName; bool vc = sav.Exportable || (sav.FileName?.EndsWith("dat") ?? false); // default to true for non-exportable
bool vc = path?.EndsWith("dat") ?? false;
return AllowGBCartEra = !vc; // physical cart selected return AllowGBCartEra = !vc; // physical cart selected
} }
} }