Archived

This topic is now archived and is closed to further replies.

billybob

making your game files 'doubleclickable'

Recommended Posts

I''ve never done it but I think you need to connect the filetype with the program(your level editor). I

f you open it the first time windows ask which program you want to use to open it and you can check the box to always use that program..

Maybe they set a parameter in the register.

Share this post


Link to post
Share on other sites
Another way to do it is to open up any old folder, and go to Tools->Folder Options...->File Types. From here you can associate (and unassociate) file types with applications. After you have done this, goto the View tab and click "Like Current Folder". And you''re done!

Share this post


Link to post
Share on other sites
Yeah, just use the file association tools (for your own comp). If you want this to be done when the game installs, you''ll need to modify the Windows registry.

Share this post


Link to post
Share on other sites
no not that part, in my program, how would i make it know to load the level after a game file was doubleclicked. right now, it just launches the editor but doesn''t load the file.

Share this post


Link to post
Share on other sites
You mean in your editor, you click on Open and want to load the file? If that''s what you mean I don''t see the problem. There''s API functions to do a Open/Save dialog, GetOpenFileName() & GetSaveFileName().

Otherwise I don''t understand your problem.



Read about my game, project #1
NEW (13th August): A new screenshot is up, plus diaries for week #3


John 3:16

Share this post


Link to post
Share on other sites
The filename is passed in the command line parameters.

If you are using win32api its located in WinMain() parameters.
If you are using MFC, there is a CWinApp method for that, I don''t remember the name sorry, probably CWinApp::CommandLine.

Take a look at MSDN.

Share this post


Link to post
Share on other sites