Sign in to follow this  
lordcorm

Game Launcher Help...

Recommended Posts

Hi im making a launcher, and ive got it to work for the most part, but the only problem is that when i click on the launcher button it starts to launcher, but it thinks that im using the directory im using the launcher in for my media. How do it tell it to use the directory my game is in....

Share this post


Link to post
Share on other sites
OK. I'd recommend you write a registry value when the application is installed, and the read it into the launcher. I assume the launcher will be on a CD or something similar?

You can then use the CRT function _chdir() to change the working directory, and then execute the application, or just execute it using it's fully-qualified path name.

I hope that was helpful.

Share this post


Link to post
Share on other sites
I wouldn't bother writing to the registry.

Just include a settings.ini with the proper directory in it which you can write to from the program, or easily edit in any text editor.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this