I am gonna try to port libcod to windows. In the newer windows it is made harder to inject DLL's. But it is possible.
I tested the solution below and it works on windows 8.1.
https://github.com/stephenfewer/ReflectiveDLLInjection
My first goal will be overriding the closer function.Code:Usage: inject.exe [pid] [dll_file]
Edit: added latest version as attachment
Edit 2: if you are getting a unknown function error, it is caused because the dll is linked to mysql. (copy libmysql.dll from lib/ with your libcod dll)
http://killtube.org/showthread.php?1...ll=1#post10967
Edit 3: It might be that pushing a vector or entity doesn't work. (unverified)
Latest source code: https://github.com/M-itch/libcod_win
CoD2 1.0: http://killtube.org/showthread.php?1...ll=1#post11117
CoD2 1.3: http://killtube.org/showthread.php?1...ull=1#post8864