non-Hugo Hugo question (more regarding C, DOS and W98)
Posted: Thu Jun 13, 2002 11:38 am
OK, here's what I want to accomplish:
o Write an .exe program in C that either runs "hewin.exe game.hex" if it detects DOS 7.00 or a form of Windows, or "hegr -h1024 -m game.hex" if it detects DOS 6.22 (or lower, I guess).
"hewin.exe game.hex" essentially runs a Hugo game (hard-coded to "game.hex" as a filename in this case, but that's alright) using the Windows terp. The other line would set up the DOS Hugo Engine to run at a resolution of 1024x768 using "millions" of colors. (I presume that is more colors than what's in the 16-bit option, right?)
(As for the reason I want to do this -- I did end up getting some feedback from some people who grabbed my last game off Download.com who didn't know they had to run hewin first. Also, I think one person tried loading the save games with hewin directly, which also caused some confusion. Having an .exe file there which does all the thinking would be beneficial.)
It's possible to easily detect, in C, if you are in DOS 6.22 (that's called "real mode," right?) or not, right? I suspect this to be the case, but I figure I'll throw this out there in case (unknown to me) it's well-known that such a thing is a pain to deal with or whatnot.
o Write an .exe program in C that either runs "hewin.exe game.hex" if it detects DOS 7.00 or a form of Windows, or "hegr -h1024 -m game.hex" if it detects DOS 6.22 (or lower, I guess).
"hewin.exe game.hex" essentially runs a Hugo game (hard-coded to "game.hex" as a filename in this case, but that's alright) using the Windows terp. The other line would set up the DOS Hugo Engine to run at a resolution of 1024x768 using "millions" of colors. (I presume that is more colors than what's in the 16-bit option, right?)
(As for the reason I want to do this -- I did end up getting some feedback from some people who grabbed my last game off Download.com who didn't know they had to run hewin first. Also, I think one person tried loading the save games with hewin directly, which also caused some confusion. Having an .exe file there which does all the thinking would be beneficial.)
It's possible to easily detect, in C, if you are in DOS 6.22 (that's called "real mode," right?) or not, right? I suspect this to be the case, but I figure I'll throw this out there in case (unknown to me) it's well-known that such a thing is a pain to deal with or whatnot.