Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[c#] Listing games

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Tue Aug 03, 2010 5:34 am    Post subject: [c#] Listing games Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Aug 03, 2010 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Aug 05, 2010 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Aug 05, 2010 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Aug 15, 2010 7:04 am    Post subject: Reply with quote

Thank you. That is most awesome.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Sun Aug 15, 2010 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites