Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help for close game. #104

Open
Avocadocs opened this issue Jun 16, 2022 · 5 comments
Open

Need help for close game. #104

Avocadocs opened this issue Jun 16, 2022 · 5 comments

Comments

@Avocadocs
Copy link

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 ?

@TheOftedal
Copy link

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

@Avocadocs
Copy link
Author

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

@Noxime
Copy link
Owner

Noxime commented Dec 14, 2022

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

@Avocadocs
Copy link
Author

Could you provide example of how to drop the client ?

@Noxime
Copy link
Owner

Noxime commented Dec 15, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants