/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/PEReader.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/PEReader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 320 by william, Tue Jun 5 19:18:20 2012 UTC revision 321 by william, Tue Jun 5 23:12:53 2012 UTC
# Line 182  namespace Sojaner.MemoryScanner Line 182  namespace Sojaner.MemoryScanner
182                  int iSecond = 0;                  int iSecond = 0;
183                  iDay = (i16Date & 0x1F);                  iDay = (i16Date & 0x1F);
184                  iMonth = ((i16Date & 0x01E0) >> 5);                  iMonth = ((i16Date & 0x01E0) >> 5);
185                  iYear = 1980 + ((i16Date & 0xFE00) >> 9);                  iYear = 1970 + ((i16Date & 0xFE00) >> 9);
186                  iSecond = (i16Time & 0x1F) * 2;                  iSecond = (i16Time & 0x1F) * 2;
187                  iMinute = ((i16Time & 0x07E0) >> 5);                  iMinute = ((i16Time & 0x07E0) >> 5);
188                  iHour = ((i16Time & 0x0F800) >> 11);                  iHour = ((i16Time & 0x0F800) >> 11);
189                  return new DateTime(iYear, iMonth, iDay, iHour, iMinute, iSecond);                  return new DateTime(iYear, iMonth, iDay, iHour, iMinute, iSecond);
   
190              }              }
191    
192          }          }

Legend:
Removed from v.320  
changed lines
  Added in v.321

  ViewVC Help
Powered by ViewVC 1.1.22