Jump to content

Sign in to follow this  
Guest SIDDickDastardly

Detecting Acceleration is installed

Recommended Posts

Guest SIDDickDastardly

Hi all,I want to control the visibility of an XML gauge so that it only appears if the user has Acceleration installed. After a trawl through the docs I couldn't find any mention of a simulation variable which contains the required version info. Is anybody aware of such a variable?Many thanks,DD

Share this post


Link to post
Share on other sites

There is no such creature.It's possible in C++ using an API call to fetch GetFileVersionInfoSizeA, and then use that to retrieve GetFileVersionInfoA for any specific file.I have a function I use to check whether the user is running FS9 or FSX, but I've never had a need to be particular about what version of FSX one is running... ;)

Share this post


Link to post
Share on other sites
Guest Patrick_Waugh

You might consider just allowing the user to "configure" the panel by including or commenting out the gauge.

Share this post


Link to post
Share on other sites
Guest SIDDickDastardly

Thanks for the info and suggestions guys. Having already just had to learn XML (and the joys of reverse Polish) from scratch in order to make my gauges, I don't think I've the capacity right now for learning yet another language -if I did I wouldn't have any room left in my head for remembering where I put my keys ;).To fill you in a bit on the reason for my question -I'm looking for a bulletproof method of preventing a user without Acceleration from using some P-51 Racer gauges and panels I've made (to avoid getting any grief from MS). Obviously an XML-accesible simulation version variable would have been the ideal method, but if MS didn't see fit to include one then I'm open to other suggestions, particularly ones which the user couldn't get around (by for example creating a dummy FA/18 folder if I used a folder check).Cheers,DD

Share this post


Link to post
Share on other sites

While I understand your concern, even if it were possible to accomplish your goal in XML, it would be far from "bulletproof," since any nine yearold with access to notepad.exe could easily defeat any embedded code... :(Even were I to take the time to custom code a C gauge that would perform a test for "Acceleration installed," the same problem would apply......because the "cheater" would simply edit the XML to remove the flag used to disable them from running. *:-*

Share this post


Link to post
Share on other sites
Guest SIDDickDastardly

Doh! Ah well thanks for your help anyway Bill.Cheers,DD

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...