Home > Games, Programming, Reversing, Windows > Hades Extension Loading

Hades Extension Loading

June 29th, 2009

Hades now has extension loading support! The API is still in the process of being exposed to the extension interface, but that should only take another 15 minutes or so to smooth out.

This is a great step forward because it means extensions can be loaded and unloaded on the fly without having to restart the process (as was the case when it was compiled as a static lib). Furthermore, it means that the modules are independent from changes to the Hades DLL and as long as no breaking interface changes are made should work with updated DLLs without the need for a recompile (as opposed to a static lib where a recompile is obviously necessary, or rather, a relink).

Naturally, both x86 and x64 are tested and working.

One issue I had with this was with the exposure of the interface. It seem that I can’t do what D3D does and do a C-style interface exposure because my interface is just too C++ heavy for me to be able to convert it to work that way. Not that it matters though, all the information exposed via exports is already available in the SDK.

Update (29/06/09):

Scratch that issue, got it working through some minor modifications and the magic of virtual functions! (Okay not magic, but it’s still a nice workaround.)

  1. Smarter
    June 29th, 2009 at 15:30 | #1

    Through the flexible extention loading one could easily unload an extenion update and reload… Sounds very useful if Cerebus was ever worked around, not that it would be.

  2. ramey
    June 30th, 2009 at 17:09 | #2

    Yeah, for exposing as C style you can simply make stuff virtual. It’s nice

  3. lol@mimic
    July 2nd, 2009 at 13:44 | #3

    post about mimic, this site is getting boring nao umk

  4. lanman92
    July 2nd, 2009 at 15:52 | #4

    Hey cypher, can you PM me on mmowned if you can help me with some trig?

  5. poire
    July 3rd, 2009 at 11:34 | #5

    yeah, post about mimic, they are giving out promotions like it is christmas to save their sorry ass.

  6. July 4th, 2009 at 13:48 | #6

    Your entertainment is the last thing on my priority list.

    Lol. I’m not your tutor.

    They’re grasping at straws. I’ve recently moved house so I’ve not had much time, I’ll put the last nails in their coffin when I have some time to do so.

  1. No trackbacks yet.