-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for discord game discovery (#1731)
* Fix for discord game discovery * Removed specific subnautica check for steam
- Loading branch information
Showing
9 changed files
with
31 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
NitroxModel/Platforms/Store/Egs.cs → NitroxModel/Platforms/Store/EpicGames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
using System.Threading.Tasks; | ||
using NitroxModel.Discovery; | ||
using NitroxModel.Platforms.OS.Shared; | ||
|
||
namespace NitroxModel.Platforms.Store.Interfaces | ||
{ | ||
public interface IGamePlatform | ||
{ | ||
string Name { get; } | ||
|
||
Platform platform { get; } | ||
|
||
/// <summary> | ||
/// Tries to start the platform and waits for it to be ready to launch games. If it has already been started it will return true. | ||
/// </summary> | ||
/// <returns>Returns true if platform is running or has started successfully.</returns> | ||
public Task<ProcessEx> StartPlatformAsync(); | ||
|
||
/// <summary> | ||
/// Tries to find the executable of the platform or null if not found. | ||
/// Tries to find the executable of the platform | ||
/// </summary> | ||
/// <returns></returns> | ||
/// <returns>Returns path to the executable or null if not found</returns> | ||
public string GetExeFile(); | ||
|
||
/// <summary> | ||
/// True if game directory originates from the game platform. | ||
/// </summary> | ||
/// <param name="gameDirectory">Directory to a game, usually where the exe file is.</param> | ||
/// <returns>True if the game platform owns this game.</returns> | ||
/// <returns>Returns true if the game platform owns this game.</returns> | ||
bool OwnsGame(string gameDirectory); | ||
|
||
string Name { get; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters