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

Force-run with Steam, but only in Steam versions #35

Open
andOlga opened this issue Jul 19, 2019 · 2 comments · May be fixed by #114
Open

Force-run with Steam, but only in Steam versions #35

andOlga opened this issue Jul 19, 2019 · 2 comments · May be fixed by #114
Labels
adjustment Adjustment of an existing vanilla or modded feature

Comments

@andOlga
Copy link
Member

andOlga commented Jul 19, 2019

Currently, the Higurashi mod does not force the Steam version of the game to run through Steam, effectively breaking integration with Steam if the game is not ran from inside the Steam UI. We have a way in the installer to check whether the game is the Steam version or not. This code should be either ported to C# and added as a conditional check to the Steam API calls, or the installer should assist the game with Steam detection (e.g. by creating a file that informs the game whether or not this is the Steam version of the game).

@ghost
Copy link

ghost commented Aug 27, 2019

Can I ask you to describe the installer's mechanism for this and link the relevant code?

@ghost ghost added the adjustment Adjustment of an existing vanilla or modded feature label Aug 27, 2019
@andOlga
Copy link
Member Author

andOlga commented Sep 6, 2019

Sure, the implementation is really basic here, though despite that I am not sure if it's possible to do within the Higurashi scripting system. What the installer does is check for the presence of steam_api.dll (for Windows), libsteam_api.so (for Linux) or Contents/Plugins/CSteamworks.bundle (for macOS) in the game folder. If any of these are found, the installer will assume that this is the Steam version of the game, otherwise, it will assume this is a DRM-free copy.
The relevant code can be found here.

@drojf drojf linked a pull request Dec 12, 2023 that will close this issue
@drojf drojf linked a pull request Dec 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adjustment Adjustment of an existing vanilla or modded feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant