steamworks-rs icon indicating copy to clipboard operation
steamworks-rs copied to clipboard

Need help for close game.

Open Avocadocs opened this issue 2 years ago • 5 comments

When I init app and client, it run game. I only want to get game install path but after that game is still running due to init process, how I could close game or stop init ?

Avocadocs avatar Jun 16 '22 09:06 Avocadocs

@Avocadocs Did you ever find a solution for this? I am having similar issues.

TheOftedal avatar Nov 12 '22 22:11 TheOftedal

@TheOftedal No sadly I didn't get it working, keep me updated if you do :)

Avocadocs avatar Nov 13 '22 14:11 Avocadocs

Could you clarify the issue and perhaps provide some example code. Dropping the initialized Client should shutdown the Steamworks SDK cleanly.

Noxime avatar Dec 14 '22 04:12 Noxime

Could you provide example of how to drop the client ?

Avocadocs avatar Dec 14 '22 17:12 Avocadocs

Rust dropping occurs when a variable goes out of scope. It can be at the end of an if statement, a function etc. You can explicity drop it by moving the client out of the current scope with drop(my_client)

Noxime avatar Dec 15 '22 03:12 Noxime