Skip to main content
gamedev.net
🔒 Locked

Complex Command Line Parameter

Started by Last Attacker Apr 15, 2004 at 5:40 AM 0 replies 200+ views
Original Post
Last Attacker
Last Attacker
I'm modifying my BaseCode to have a proper platform to start making it into an engine or something. Firstly I'm rewriting my parameter processing code sothat the following can work correctly. The current parameters are : /dev (developers mode for the log file, etc) /w (sets the width of the game window, also sets the height accordingly) /b (sets the depth bits of the game window) /win (makes the game window-mode, great for debugging, etc.) All of 'em work except that I want it to work just like HL's command line parameters, you know you can specify the with of the game window like this -w800 or -w 800. And I don't want the /w and /win to be confused by the program. If you guys have an idea of how to do this, please reply. EDIT : Oh, I forgot to say that at the moment I'm using strstr to search for a parameter from the cmdline and the params must be entered like /w 800. Thanks // Last Attacker \\---=( LA )=---// LA Extreme \\

ICQ Number : 120585863

E-mail: laextr@icqmail.com [edited by - Last Attacker on April 15, 2004 6:42:19 AM]

"Take delight in the Lord and He will give you your heart's desires" - Psalm 37:4My Blog

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.