• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Detecting W3 version?

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Hi

Somehow I need to detect the current W3 version from an external program because I would like to make some kind of "version switcher" but it would autopatch to 1.26a if it detected a lesser version.

Does anyone have a clue how would I detect the current version of a W3 install? Blizzard must have this information stored somewhere in order to trigger an autoupdate over bnet, unless it is hardcoded into the binary. In that case I am guessing the best way to do is to take a hash of the war3.exe and other binaries and compare them to 1.26a hash.
 
Level 8
Joined
Sep 24, 2007
Messages
300
The version is actually written in the file information of war3.exe (Properties->Details) so that's where I'll read it.

@patch.txt: If you install W3 from scratch there is no Patch.txt afaik.
 
Status
Not open for further replies.
Top