mirror of https://github.com/PCSX2/pcsx2.git
Restore wxInvalidDateTime, and fix the call that was crashing debug.
This commit is contained in:
parent
14a62c3a3f
commit
914573a5c3
|
@ -32,7 +32,7 @@ public:
|
||||||
{
|
{
|
||||||
slot_num = 0;
|
slot_num = 0;
|
||||||
empty = true;
|
empty = true;
|
||||||
updated = wxDateTime(1, wxDateTime::Jan, 1970);
|
updated = wxInvalidDateTime;
|
||||||
crc = ElfCRC;
|
crc = ElfCRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ public:
|
||||||
{
|
{
|
||||||
slot_num = i;
|
slot_num = i;
|
||||||
empty = true;
|
empty = true;
|
||||||
updated = wxDateTime(1, wxDateTime::Jan, 1970);
|
updated = wxInvalidDateTime;
|
||||||
crc = ElfCRC;
|
crc = ElfCRC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ public:
|
||||||
|
|
||||||
wxDateTime GetTimestamp()
|
wxDateTime GetTimestamp()
|
||||||
{
|
{
|
||||||
if (!isUsed()) return wxDateTime(1, wxDateTime::Jan, 1970);
|
if (!isUsed()) return wxInvalidDateTime;
|
||||||
|
|
||||||
return wxDateTime(wxFileModificationTime(SaveStateBase::GetFilename(slot_num)));
|
return wxDateTime(wxFileModificationTime(SaveStateBase::GetFilename(slot_num)));
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ public:
|
||||||
{
|
{
|
||||||
if (empty) return wxsFormat(_("Slot %d - Empty"), slot_num);
|
if (empty) return wxsFormat(_("Slot %d - Empty"), slot_num);
|
||||||
|
|
||||||
if (updated != wxDateTime(1, wxDateTime::Jan, 1970)) return wxsFormat(_("Slot %d - %s %s"), slot_num, updated.FormatDate(), updated.FormatTime());
|
if (updated.IsValid()) return wxsFormat(_("Slot %d - %s %s"), slot_num, updated.FormatDate(), updated.FormatTime());
|
||||||
|
|
||||||
return wxsFormat(_("Slot %d - Unknown Time"), slot_num);
|
return wxsFormat(_("Slot %d - Unknown Time"), slot_num);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue