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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.