Jump to content
The simFlight Network Forums

finding aircraft files


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.