track-o-bot
track-o-bot copied to clipboard
Detect build when Hearthstone is launched
Hi, We only need to detect build on hearthstone start ( since it won't change until restart ) DetecBuid() is invoked multiple of times and via HearthstoneCardDB::CardsJsonLocalPath() ( among others) - on mac it opens a file and reads it; if it the same on windows as its done in wine there are also multiple allocations to get file version.
This is an infrequent operation. Can you specify why these rare multiple allocations are a problem for you?