track-o-bot
track-o-bot copied to clipboard
DetectRegion will return empty QString in specific conditions.
Hi, From my testing it looks like region ( Hearthstone::DetectRegion() ) will allways return empty QString until user changes region in Bnet at least once (file will be created on first region change). Tested with default install of bnet and hs ( on linux via wine ). Can any one confirm?
PS: this might help to simplify this method at least for windows: After some digging in wine's registry i found that that region data can be accessed via registry key: HKEY_CURRENT_USER\Software\Blizzard Entertainment\Battle.net\Launch Options\WTCG\REGION However it is updated after few seconds after hs start ( at least with wine don't know how it looks like on windows )
Sorry wrong info.
Edit: On first region change in battle.net field LastSelectedRegion will be created otherwise won't exist.