PDA

Click to See Complete Forum and Search --> : GameLauncher


CyberCarsten
Jan 5th, 2000, 02:50 AM
Hi!
I'm making a GameLaunhcer!
I have a List1 and 2 buttons on a form!
List1 contains the games, button 1 loads a game and button 2 saves a game.
How do i save a game so i can start i from my launcher??
Can i use the registry to save the game nanme and path??

Yours Sincierly
CyberCarsten
carsten.h.thomsen@mail.tele.dk http://home18.inet.tele.dk/cyber/ - [T.H.E most interactive site on the net :o))]

Aaron Young
Jan 5th, 2000, 03:54 AM
If you're not too worried about where it goes in the Registry, you can use the VB Functions; GetSetting/GetAllSettings/SaveSetting, ie.

Add a Game to the Registry..

SaveSetting App.Title, "Game List", "Game 1", "C:\Games\Game1.exe"

Get a Specific Game Path from the Registry..

sGamePath = GetSetting(App.Title, "Game List", "Game 1", "")

Get All Games and Paths..

Dim aGames As Variant
Dim iGame As Integer

aGames = GetAllSettings(App.Title, "Game List")
For iGame = LBound(aGames, 1) To UBound(aGames, 1)
List1.AddItem aGames(iGame, 0) & " - " & aGames(iGame, 1)
Next


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com