The only way I know how to do that is using the -d (used to define values).

Then in your code, you can use IFDEF, or just use the defined values.

So to do video mode from outside, you can do something like this:

// This will start our prog in 800x600x32 fullscreen

yourprog.exe -d VIDEO_MODE,7 -d VIDEO_DEPTH,32 -d VIDEO_SCREEN,1

And this in your code.

var video_mode = VIDEO_MODE;
var video_depth = VIDEO_DEPTH;
var video_screen = VIDEO_SCREEN;

Granted I havent tested it, but I have done something simalar using DEFINE from another file.


Never argue with an idiot. They drag you down to their level then beat you with experience