Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Support to v2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Feb 23, 2021
1 parent a9dab21 commit 752328a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Source/IRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,25 @@ bool IRuntime::InitFixedData()
_Data.Offset.SignedTimeText = 0x14;
_Data.Offset.HistoryPeer = 0x7C;
}
// ver >= 2.4.1
else if (_FileVersion >= 2004001)
// ver >= 2.4.1, ver < 2.6.0
else if (_FileVersion >= 2004001 && _FileVersion < 2006000)
{
_Data.Offset.TimeText = 0x70;
_Data.Offset.TimeWidth = 0x74;
_Data.Offset.MainView = 0x5C;
_Data.Offset.Media = 0x54;
_Data.Offset.SignedTimeText = 0x10; // changed
_Data.Offset.HistoryPeer = 0x7C;
_Data.Offset.HistoryPeer = 0x7C; // maybe untested! (I forgot :)
}
// ver >= 2.6.0
else if (_FileVersion >= 2006000)
{
_Data.Offset.TimeText = 0x78; // changed
_Data.Offset.TimeWidth = 0x7C; // changed
_Data.Offset.MainView = 0x60; // changed
_Data.Offset.Media = 0x5C; // changed
_Data.Offset.SignedTimeText = 0x10;
_Data.Offset.HistoryPeer = 0x7C; // untested!
}

return true;
Expand Down

0 comments on commit 752328a

Please sign in to comment.