mkmantis Posted June 22, 2006 Report Posted June 22, 2006 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?
mkmantis Posted June 23, 2006 Author Report Posted June 23, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now