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

Fix for discord game discovery #1731

Merged
merged 2 commits into from
Feb 18, 2022

Conversation

dartasen
Copy link
Member

PlatformDetection wasn't up to date with latest changes, so :

  • Merged PlatformDetection into GamePlatforms so it'll be easy to maintain since we need this code to launch the game
  • Improved steam detection and epic games


public bool OwnsGame(string gameDirectory)
{
return File.Exists(Path.Combine(gameDirectory, "steam_api64.dll"));
return File.Exists(Path.Combine(gameDirectory, "steam_api64.dll")) || File.Exists(Path.Combine(gameDirectory, "Subnautica_Data", "Plugins", "CSteamworks.dll"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This extra check is game specific, not platform specific code. If it's not necessary I prefer to remove it or change it to something that every steam game has.

@Measurity Measurity merged commit 8c5c52c into SubnauticaNitrox:master Feb 18, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants