| View previous topic :: View next topic |
| Author |
Message |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Tue Aug 03, 2010 5:34 am Post subject: [c#] Listing games |
|
|
So like I want my program to list all my games.
For this task I currently use registry and it seems to work.
Is it enough to check in the registry or do you have to look in the hdd aswell?
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Aug 03, 2010 8:26 pm Post subject: |
|
|
Depends on if the game leaves traces for you to locate in the registry. Also depends on if the game was a pirated copy or incorrectly installed (copy/pasted from another machine) and so on.
You can do what Xfire does if you need fail-safe methods to fall back on:
- Scan the registry for the known keys.
- Scan the default install path.
- Scan the full drive if you feel it is needed afterward.
You wont automatically detect anything without first knowing about the software to begin with though.
_________________
- Retired. |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Thu Aug 05, 2010 6:33 am Post subject: |
|
|
I only tend to list games that were installed. No rips or such things.
Let's say I want to list steam games at first.
Steam apps are written like this
"<software>\Valve\Steam\Apps\x"
Where x is an number identifying the game.
Is there any way I could get my hands on the steam app id list? Or are the ids created when installing the games?
I checked the list that valve has provided but it doesn't include third party games.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Aug 05, 2010 7:00 am Post subject: |
|
|
The full list, probably not. I haven't tinkered with any of Steams files since I have little interest in most games on it. There may be a file that could contain a full list, but I doubt it.
You can obtain the app ids from the site just by viewing the game pages. Its in the url of the game. You can also check the gameinfo.txt file inside the game folders which contains the app id. For example, Counter-Strike Source:
| Code: | "GameInfo"
{
game "Counter-Strike Source"
title "COUNTER-STRIKE'"
title2 "source"
type multiplayer_only
nomodels 1
nohimodel 1
nocrosshair 0
bots 1
hidden_maps
{
"test_speakers" 1
"test_hardware" 1
}
nodegraph 0
FileSystem
{
SteamAppId 240 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
... |
The developer wiki has a list of the app ids though:
http://developer.valvesoftware.com/wiki/SteamAppId
Not sure if thats fully complete but the majority are there.
_________________
- Retired. |
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun Aug 15, 2010 7:04 am Post subject: |
|
|
Thank you. That is most awesome.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Sun Aug 15, 2010 8:18 am Post subject: |
|
|
Xfire does come with a pretty comprehensive games list, you could use their list.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
|