Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I'm trying to find some info about current aircraft from inside a dll, but I have troubles finding path to .air file -- what is stored at 0x3c00 in FSUIPC. Apparently, that value there is constructed via some calls to sim1.dll, but I just can't figure out the whole process. Would someone help me on this?

Posted

Looks like i've found it myself.

It seems like acontain.dll has a fixed dw variable at 20662300, which points to some structure, first dw of which points to what seems like an aircraft container :)

so with code like

MOV EAX,20662300

MOV EAX,DWORD PTR DS:[EAX]

MOV EAX,DWORD PTR DS:[EAX+8]

LEA EAX,DWORD PTR DS:[EAX+C]

we get a szpointer in eax to a string like 'aircraft\c172'. Pretty.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.