track-o-bot icon indicating copy to clipboard operation
track-o-bot copied to clipboard

DetectRegion will return empty QString in specific conditions.

Open angrylinuxuser opened this issue 8 years ago • 1 comments
trafficstars

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 )

angrylinuxuser avatar Nov 27 '16 23:11 angrylinuxuser

Sorry wrong info.

Edit: On first region change in battle.net field LastSelectedRegion will be created otherwise won't exist.

angrylinuxuser avatar Nov 29 '16 22:11 angrylinuxuser