From 23e2f62a8cc7b92826307fda62676b01d54bf9de Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 5 Sep 2003 23:12:26 +0000 Subject: Still some more VC7++ port... --- lib/cdutils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/cdutils.cpp') diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 7130c87..81744e8 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -342,6 +342,9 @@ int cdutils::show_entry(struct DirEntry * dir) { strcpy(pbuf, ".."); } + if (dir->Year < 70) + dir->Year += 100; + printm(M_BARE, "%6i - %8i - %2i/%02i/%04i - %2i:%02i:%02i%+03.1f - %c%c%c%c%c%c%c%c - %s\n", dir->Sector, dir->Size, dir->Day, dir->Month, dir->Year + 1900, dir->Hour, dir->Minute, dir->Second, ((float) dir->Offset) / 4, dir->Flags & 1 ? 'H' : '-', dir->Flags & 2 ? 'D' : '-', dir->Flags & 4 ? 'A' : '-', dir->Flags & 8 ? 'R' : '-', -- cgit v1.2.3