BOSSoNe0013 / track-o-bot

The friendly Hearthstone Tracker (Linux port)
https://trackobot.com
GNU Lesser General Public License v2.1
39 stars 6 forks source link

Version extraction #89

Closed angrylinuxuser closed 7 years ago

angrylinuxuser commented 7 years ago

Please read all!

Hi, this mainly implements version extraction from exe files ( somewhat based on wine code ).

What id does it reads the hearthstone executable into a buffer and from there it tries to extract version from it. At first i wanted to operate on hs exe file but i was afraid that some anti-cheat mechanism would flag user as a cheater so i decided to read entire file into memory and operate on a buffer. Since my lack of experience i don't know also if reading an exe to a buffer while game is running may cause user to be flagged as a cheater. So please take a look a this code!

There is also: -mem leak fix ( im going to try to upstream it ) -removal of unused commented out code -small refactoring of linuxwindowcapture witch i had stored for some time -and detecting build on hearthstone start ( ill try to upstream this too ) -small cleanups.