mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 04:31:15 +00:00
An SDK to create Mods for dhewm3
0e6e3519b2
turns out that __builtin_alloca_with_align() might releases the allocated memory at the end of the block it was allocated in, instead of the end of the function (which is the behavior of regular alloca() and __builtin_alloca()): "The lifetime of the allocated object ends at the end of the block in which the function was called. The allocated storage is released no later than just before the calling function returns to its caller, but may be released at the end of the block in which the function was called." https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#index-_005f_005fbuiltin_005falloca_005fwith_005falign Clang also supports __builtin_alloca_with_align(), but always releases the memory at the end of the function. And it seems that newer GCC versions also tend to release it at the end of the function, but GCC 4.7.2 (that I use for the official Linux release binaries) didn't, and that caused weird graphical glitches. But as I don't want to rely on newer GCC versions behaving like this (and the documentation explicitly says that it *may* be released at the end of the block, but will definitely be released at the end of the function), I removed all usage of __builtin_alloca_with_align(). (Side-Note: GCC only started documenting the behavior of __builtin_alloca and __builtin_alloca_with_align at all with GCC 6.1.0) |
||
---|---|---|
cm | ||
d3xp | ||
framework | ||
game | ||
idlib | ||
MayaImport | ||
renderer | ||
sound | ||
sys | ||
tools/compilers/aas | ||
ui | ||
.gitignore | ||
CMakeLists.txt | ||
config.h.in | ||
COPYING.txt | ||
README.md |
dhewm3 port of the Doom3: The Lost Mission mod.
You can get the game data at https://www.moddb.com/mods/the-lost-mission
You can start the game with:
./dhewm3 +set fs_game d3le +set fs_game_base d3xp
It needs both the full version of Doom3 and the official "Resurection of Evil" addon installed!
A big THANK YOU to "Arl90" for releasing this mod under GPL!
Original Read Me:
=====================================
Doom 3 The Lost Mission
Version: 1.1
Release date: 19/08/2019
=====================================
DESCRIPTION:
=====================================
The Lost Mission campaing for 2004 Doom 3 version.
=====================================
REQUIREMENTS:
=====================================
-Doom 3 and Resurrection of Evil expansion pack.
-1.3.1 patch applied.
=====================================
INSTALLATION:
=====================================
Extract the folder 'd3le' and the .bat file 'The Lost Mission.bat' into your Doom 3 instalation folder.
Run the .bat file, enjoy.
(The folder named 'Extra' has the mod source code and an icon file).
=====================================
CREDITS:
=====================================
All Doom 3 community on discord: Several assists, testing, support and very good will.
id Software: For Doom 3.
Nerve Software: For Resurrection of Evil.
id software and Bethesda: for Doom 3 BFG Edition and The Lost Mission campaing.