Forums

Forums (http://www.abandonia.com/vbullet/index.php)
-   Programming (http://www.abandonia.com/vbullet/forumdisplay.php?f=25)
-   -   Dosbox Memory Wizard (http://www.abandonia.com/vbullet/showthread.php?t=13595)

The Fifth Horseman 02-03-2007 11:43 AM

<div class='quotetop'>QUOTE(Japofran @ Feb 28 2007, 11:20 PM) [snapback]281341[/snapback]</div>
Quote:

To check the settings in advance use the same structure as what Data linked:

Code:

config -get "dos ems" > nul
if %CONFIG%=="true"**...
if %CONFIG%=="false" ...

Replace the "..." with commands, a goto one if you want more than one command to be executed for each option. You wouldn't need the %CONFIG% variable to be created if the CONFIG command returned errorlevels, but it always returns 0. But still command prompt input is faster than menus. I won't start with C code, I'm not that bored right now. :P
[/b]
Tried that, doesn't seem to work. In fact, DB-info doesn't seem to cope well with any of the DosBox versions I have installed on my PC - reports v0.65 as 0.63 or lower, and for 0.66 it doesn't return the values for settings.

Japo 02-03-2007 12:53 PM

I haven't tried DB-INFO.BAT but I've just tried my code with DOSBox 0.65 and it works all right. (??)

The Fifth Horseman 05-03-2007 08:50 AM

Figured out why. Turned out that after leaving Norton everything worked allright.

So I went and re-worked the code (adding appropriate error messages). The entire thing weighs in at 2019 bytes now, 1394 without the chunks responsible for error reporting.

I might actually expand this thing to allow control of most DosBox settings. ^_^

nitro 05-03-2007 03:33 PM

Wow this look great :ok:
I never thought you could make it like this just in a bat file. And the code also looks ok.


The current time is 03:24 PM (GMT)

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.