I use this for my DLLs. I never really have a problem. IIRC the address will have to be changed if you build as a Title Dll(remove the SysDll declaration).
I don't remember though, I usually always build as a sysdll and use DL to load it.
<?xml version="1.0"?>
<xex>
<format>
<compressed/>
</format>
<mediatypes>
<allpackages/>
</mediatypes>
<gameregion>
<all/>
</gameregion>
<sysdll/>
<version major="0x02" minor="0x00" build="0x397F" qfe="0x00"/>.
<mfgmode mode = "aware"/>
<baseaddr addr = "0x91C00000"/>
</xex>
Thanks Dwack,
I can get the dll base address to 0x82000000 in the project settings under the base address under linker|advanced
The project is set to dynamic library (.xex)
With DllMain instead of _cdecl main
Under Linker:
Entry Point: DllMain
Base Address: 0x82000000
I set dll main as the entry point or I get loads of errors - but now when i load the dll it gives a black screen and freezes the console.
I am trying to load this dll for Forza making patches to the default.xex with xepatcher
The DLL by default maps to 0x88000000 which XePatcher presumably doesn't support - loads of errors about ranges.
Hope you can understand at least a sentence of that :/
Thanks