Skip to content

Commit

Permalink
feat(Era): Update Era source code to 3.9.11. Commit: cd31685
Browse files Browse the repository at this point in the history
Signed-off-by: VuceticBranislav <[email protected]>
  • Loading branch information
VuceticBranislav committed Apr 20, 2024
1 parent bcaae67 commit 68a0c44
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ modules/
Vfs/_LOG_.txt
Vfs/dunit.ini
!**/mms.cfg
VersionInfo.res
VersionInfo.res
Compiled/
6 changes: 6 additions & 0 deletions Era/Erm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,9 @@ procedure OnEraLoadScripts (Event: GameExt.PEvent); stdcall;
RegisterErmEventNames;

(* Load scripts *)
// Hack to fix HD mods load from battle functionality, using GOTO and leaving dirty memory state
ErmTriggerDepth := 0;

ScriptMan.LoadScriptsFromSavedGame;
end;

Expand Down Expand Up @@ -5912,6 +5915,9 @@ function Hook_FindErm_BeforeMainLoop (Context: Core.PHookContext): longbool; std
GLOBAL_EVENT_SIZE = 52;

begin
// Hack to fix HD mods load from battle functionality, using GOTO and leaving dirty memory state
ErmTriggerDepth := 0;

// Skip internal map events: GEp_ = GEp1 - [sizeof(_GlbEvent_) = 52]
pinteger(Context.EBP - $3F4)^ := pinteger(pinteger(Context.EBP - $24)^ + $88)^ - GLOBAL_EVENT_SIZE;
ErmErrReported := false;
Expand Down
2 changes: 1 addition & 1 deletion Era/VersionInfo.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VER_Major = 3;
VER_Minor = 9;
VER_Build = 10;
VER_Build = 11;
VER_Revision = 0;
VER_Sufix = '-port';

Expand Down
8 changes: 4 additions & 4 deletions Era/VersionInfo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#endif

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,9,10,0
PRODUCTVERSION 3,9,10,0
FILEVERSION 3,9,11,0
PRODUCTVERSION 3,9,11,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS (VER_PRIVATEBUILD | VER_PRERELEASE | VER_DEBUG)
FILEOS VOS_NT | VOS__WINDOWS32
Expand All @@ -25,8 +25,8 @@ BEGIN
BEGIN
BLOCK "000004E4"
BEGIN
VALUE "ProductVersion", "3.9.10.0\0"
VALUE "FileVersion", "3.9.10.0\0"
VALUE "ProductVersion", "3.9.11.0\0"
VALUE "FileVersion", "3.9.11.0\0"
VALUE "CompanyName", "BerSoft\0"
VALUE "FileDescription", "Era Project\0"
VALUE "InternalName", "\0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Contains ERA and VFS projects as well as B2 library.<br/>
<br/></i>
Original commits containing code are from <a href="https://github.com/ethernidee">ethernidee</a> repositories:<br/>
ERA: <a href="https://github.com/ethernidee/era/tree/0d64ad2cd6f7bbbc23eded39d22184969c1ad506"><strong>0d64ad2</strong></a><br/>
ERA: <a href="https://github.com/ethernidee/era/tree/cd3168559af47394618fe2e3bbb6ac47874ac9f8"><strong>cd31685</strong></a><br/>
VFS: <a href="https://github.com/ethernidee/vfs/tree/f18d56dcb7ddee787c01680b98f078fe409359e9"><strong>f18d56d</strong></a><br/>
B2: <a href="https://github.com/ethernidee/b2/tree/001251eb5f45378c329b6a60a4a4d87c346f36a0"><strong>001251e</strong></a>
</p>
Expand Down

0 comments on commit 68a0c44

Please sign in to comment.