This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified code, removed old library scanning
- Loading branch information
1 parent
f17efdf
commit fcca83f
Showing
8 changed files
with
47 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
using System; | ||
using Steam.Local; | ||
using System.IO; | ||
|
||
namespace Steam_Game_Launcher | ||
{ | ||
class Game : IComparable<Game> | ||
class Game : LocalApp, IComparable<Game> | ||
{ | ||
public string name { get; set; } | ||
public string ID { get; set; } | ||
public string url { get; set; } | ||
public string install_dir { get; set; } | ||
public bool Visible { get; set; } | ||
public string Exec { get; set; } | ||
public string SafeName { get; set; } | ||
|
||
|
||
public Game(string name, string ID, string install_dir, bool Visible = true) | ||
public Game(string manifest, bool Visible = true): base(manifest) | ||
{ | ||
this.name = name; | ||
this.ID = ID; | ||
this.install_dir = install_dir; | ||
this.url = "steam://rungameid/" + ID; | ||
this.Visible = Visible; | ||
Exec = "steam://rungameid/" + ID.ToString(); | ||
SafeName = new DirectoryInfo(InstallDir).Name; | ||
} | ||
|
||
public int CompareTo(Game other) | ||
{ | ||
return name.CompareTo(other.name); | ||
return Name.CompareTo(other.Name); | ||
} | ||
} | ||
} |
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
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,6 +1,3 @@ | ||
[Advanced] | ||
xpath=//*[@id="info"]/table/tbody/tr[1]/td[2]/a | ||
regexNamePattern=(?<="name"\W*")(.*)(?=") | ||
regexIDPattern=(?<="appid"\W*")(.*)(?=") | ||
regexInstallPattern=(?<="installdir"\W*")(.*)(?=") | ||
steam_cdn=https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/ |
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
Oops, something went wrong.