Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

DetectRegion will return empty QString in specific conditions. #193

Open
angrylinuxuser opened this issue Nov 27, 2016 · 1 comment
Open
Labels

Comments

@angrylinuxuser
Copy link
Contributor

angrylinuxuser commented Nov 27, 2016

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
Copy link
Contributor Author

angrylinuxuser commented Nov 29, 2016

Sorry wrong info.

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

@stevschmid stevschmid added the bug label Jan 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants