by HotWax » Sat Dec 20, 2003 2:40 am
I know, weasel, but Windows controls what the command-line is, and unless otherwise specified in the registry, the default command-line when a file is dragged onto an executable is:
[path\executable.ext] [path\droppedfile.ext]
So, even if "mywad.wad" was in the same folder as ZDoom, when you drop it on the exe, Windows sends this command line: (assuming the folder is C:\Games\ZDoom)
C:\Games\ZDoom\zdoom.exe C:\Games\ZDoom\mywad.wad
ZDoom than infers an understood -file parameter and it loads. This is the right way to do things because no matter where the WAD is (in another folder, on a floppy disk, etc) it'll get loaded properly.
Also, I was being unnecessarily anal, hence the smiley.
I know, weasel, but [b]Windows[/b] controls what the command-line is, and unless otherwise specified in the registry, the default command-line when a file is dragged onto an executable is:
[path\executable.ext] [path\droppedfile.ext]
So, even if "mywad.wad" was in the same folder as ZDoom, when you drop it on the exe, Windows sends this command line: (assuming the folder is C:\Games\ZDoom)
C:\Games\ZDoom\zdoom.exe C:\Games\ZDoom\mywad.wad
ZDoom than infers an understood -file parameter and it loads. This is the right way to do things because no matter where the WAD is (in another folder, on a floppy disk, etc) it'll get loaded properly.
Also, I was being unnecessarily anal, hence the smiley.