Browse Source

Update 'README.md'

master
Zelaven 4 years ago
parent
commit
0ed0bc0b5c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      README.md

+ 4
- 2
README.md View File

@ -2,10 +2,12 @@
Dynamic memory allocation for Doom source ports
If you have ever wanted to be able to allocate memory dynamically in Doom for whatever reason, then this is the solution.
The current implementation persists the allocations across map changes, but adding hub-scope allocation is in the pipeline.
The interface is a C-style malloc/free in both global and world scope, namely gmalloc/gfree and wmalloc/wfree.
Suggestions, requests and the like are welcome.
For discussion, see this thread: [Zandronum forum thread](https://zandronum.com/forum/viewtopic.php?p=115135)
## Motivation
I, Zelaven, am a sucker for things like these. That aside, this is actually useful for projects that want to support extensibility.
As an example, imagine an ACS-implemented dialogue system where multiple side-running, unrelated extension submods should be able to add diagolue options. This is hard to do if the entire dialogue system and its data is precompiled in the ACS of the core mod. It would require the mod to add its own handling of space in one or more of the infinitely expansible spaces. Otherwise the only thing a submod can do is copy-paste the ACS source of the core mod and make its changes to that and use file replacement, which, if multiple mods do this, only one of them will have its effects realized, namely the last loaded.
@ -26,4 +28,4 @@ After building your mod, simply load it alongside the build of ZMemory matching
## Building
Currently only a linux build script is available. A windows build script would be an appreciated contribution.
On linux, the environment variable ACC_ZCOMMON_PATH needs to be defined for the script to work. Alternatively you can the compilation part on your own with your own script and run the build script anyway. Having the environment variable be missing will only result in the build script not compiling the ACS source for you.
On linux, the environment variable ACC_ZCOMMON_PATH needs to be defined for the script to work. Alternatively you can do the compilation part on your own with your own script and run the build script anyway. Having the environment variable be missing will only result in the build script not compiling the ACS source for you.

Loading…
Cancel
Save