-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from KrystianLesniak/develop
Release: 1.5.0
- Loading branch information
Showing
14 changed files
with
186 additions
and
26 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
namespace GamesLauncher.Common.Settings | ||
{ | ||
public class HiddenGames | ||
{ | ||
public List<HiddenGame> Items { get; set; } = new List<HiddenGame>() //This property and class needs to be public to be retrieved by FL Settings | ||
{ | ||
new HiddenGame | ||
{ | ||
InternalGameId = "Steam_Steamworks Common Redistributables", | ||
Platform = "Steam", | ||
Title = "Steamworks Common Redistributables" | ||
} | ||
}; | ||
|
||
public void Hide(string title, string platform, string internalGameId) | ||
{ | ||
if (!Items.Any(x => x.InternalGameId == internalGameId)) | ||
{ | ||
Items.Add(new HiddenGame | ||
{ | ||
InternalGameId = internalGameId, | ||
Platform = platform, | ||
Title = title | ||
}); | ||
} | ||
} | ||
|
||
public void Unhide(HiddenGame hiddenGame) | ||
{ | ||
Items.Remove(hiddenGame); | ||
} | ||
|
||
public bool IsHidden(string internalGameId) | ||
{ | ||
return Items.Any(x => x.InternalGameId == internalGameId); | ||
} | ||
} | ||
|
||
public class HiddenGame | ||
{ | ||
public string Title { get; set; } = string.Empty; | ||
public string Platform { get; set; } = string.Empty; | ||
public string InternalGameId { get; set; } = string.Empty; | ||
} | ||
|
||
} |
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
14 changes: 0 additions & 14 deletions
14
src/GamesLauncher.Platforms/SyncEngines/Steam/SteamGamesConsts.cs
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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