Results 1 to 10 of 31

Thread: Libcod for windows

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts

    Libcod for windows

    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
    Code:
    Usage: inject.exe [pid] [dll_file]
    My first goal will be overriding the closer function.

    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
    Attached Files Attached Files
    Last edited by Mitch; 9th January 2015 at 21:27. Reason: Added GitHub link

  2. The Following 6 Users Say Thank You to Mitch For This Useful Post:

    guiismiti (11th September 2014),Jeplaa (19th December 2013),kung foo man (19th December 2013),Leal (19th December 2013),RobsoN (19th December 2013),smect@ (5th February 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •