mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 01:29:06 -05:00
Add interface for revised savefile types (patches)
SWSH is the first common savefile type that has different revisions after official patches. We want to indicate in the Program Title which revision we're currently editing, because people still are not editing latest-format saves and complaining y no urshifu. Use short descriptions to indicate revision (Base, IoA, CT), rather than magic numbers (v0/v1) or 1.X or 1.X.Y+, because GameFreak can't follow semver rules. go away ranch platinum update, i might handle you another time
This commit is contained in:
@@ -819,6 +819,8 @@ private static string GetProgramTitle()
|
||||
private static string GetProgramTitle(SaveFile sav)
|
||||
{
|
||||
string title = GetProgramTitle() + $" - {sav.GetType().Name}: ";
|
||||
if (sav is ISaveFileRevision rev)
|
||||
title = title.Insert(title.Length - 2, rev.SaveRevisionString);
|
||||
var ver = GameInfo.GetVersionName(sav.Version);
|
||||
if (Settings.Default.HideSAVDetails)
|
||||
return title + $"[{ver}]";
|
||||
|
||||
Reference in New Issue
Block a user