Rall3n / galaxy-integration-amazon

GOG Galaxy 2.0 integration for the Amazon Games Launcher
GNU General Public License v3.0
303 stars 16 forks source link

Ability to log the time played when the client is set to auto close #19

Closed ferrazpedro closed 3 years ago

ferrazpedro commented 3 years ago

Hey! Good evening!

I'm trying to implement the same logic that https://github.com/AHCoder uses in most of his emulator plugins to track the time played to this one. The only problem is that it would only work if the amazon client is set to automatically close. If not, it will keep tracking as if the last chosen game is being played till the client stops. If everything works alright, would you be interested in a PR or should I keep this as a fork?

If you're interested, I'm adding the changes here: https://github.com/ferrazpedro/galaxy-integration-amazon/tree/feature/log_time.

EDIT: It's already actually working, I just have to test it more to see if there isn't anything strange happening.