From 6ab7ba4bc1f9cb45f3617ce3202e63a0cf9928db Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Wed, 27 Jan 2016 19:57:17 -0800 Subject: [PATCH] Add LastSavedTime string Backup purposes. --- Misc/SAV6.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Misc/SAV6.cs b/Misc/SAV6.cs index 326b716ed..60c4fc424 100644 --- a/Misc/SAV6.cs +++ b/Misc/SAV6.cs @@ -446,6 +446,7 @@ public int PlayedSeconds public int LastSavedDay { get { return (int)(LastSaved >> 16 & 0x1F); } set { LastSaved = LastSaved & 0xFFE0FFFF | ((uint)value & 0x1F) << 16; } } public int LastSavedHour { get { return (int)(LastSaved >> 21 & 0x1F); } set { LastSaved = LastSaved & 0xFC1FFFFF | ((uint)value & 0x1F) << 21; } } public int LastSavedMinute { get { return (int)(LastSaved >> 26 & 0x3F); } set { LastSaved = LastSaved & 0x03FFFFFF | ((uint)value & 0x3F) << 26; } } + public string LastSavedTime => $"{LastSavedYear.ToString("0000")}{LastSavedMonth.ToString("00")}{LastSavedDay.ToString("00")}{LastSavedHour.ToString("00")}{LastSavedMinute.ToString("00")}"; public int ResumeYear { get { return BitConverter.ToInt32(Data, AdventureInfo + 0x4); } set { BitConverter.GetBytes(value).CopyTo(Data,AdventureInfo + 0x4); } } public int ResumeMonth { get { return Data[AdventureInfo + 0x8]; } set { Data[AdventureInfo + 0x8] = (byte)value; } }