Usage: dgVoodooSetup [wrapperfile] [/opt1] ... [/optn]

where wrapperfile can be:

    File                            Specified file
    $Win$[File]|[:0|1|2]            $Win$ prefix is changed to Windows directory
                                    if File is specified, appended to Win dir
                                    
    $FirstFound$[:0|1|2]            directory where wrapper file is first found

                                    1 = glide.dll, 2 = glide2x.dll, 0 = any of them
                                    default = 0

where options:

    (E/D = Enable/Disable)
    (Dec = decimal number)
    (Hex = hexadecimal number prefixed by 'x' or '0x')

options for operations
    
    /?, /h, /help                   Help for command line options
    
    /Save                           Save config in wrapper file
    /Import:configfile              Load config from configfile
    /Export:configfile              Save config in configfile
    /ExportToText:textfile          Export config into textfile

    /Platform[:Win|Dos]             Load appropriate platform config, default = Win
    /Lang[:Eng|Hun]                 Language, default = Eng

options modifying config:

    /Windowed[:On|Off|Inv]          E/D windowed mode.
    /BitDepth[:16|32]               Color buffer bit depth in full scr mode.
                                    Default: 16
    /ScrShot[:On|Off|Inv]           E/D screen shots.
    /ScrShotToCb[:On|Off|Inv]       E/D screen shots going to clipboard
    /VDDMode[:On|Off|Inv]           E/D VDD mode
    /RunInBackgnd[:On|Off|Inv]      E/D running in background
    /CLIPOPF[:On|Off|Inv]           Force handling CLI/POPF (XP)
    /HideConsole[:On|Off|Inv]       Hide/Show console window
    /Mouse[:On|Off|Inv]             E/D setting mouse focus to Dos
    /MouseCtrlAlt[:On|Off|Inv]      E/D Ctrl-Alt to release mouse focus
    /PreWinSize[:On|Off|Inv]        Preserve window size
    /PreWinAspRat[:On|Off|Inv]      Preserve window aspect ratio

    /MonFreq[:Hex|Dec]              Monitor freq, 0 = default freq, default = 0
    /ClosestMonFreq[:On|Off|Inv]    Setting closest supported monitor freq to the
                                    one that app requires, overrides MonFreq setting
    /SyncToAppFreq[:On|Off|Inv]     E/D syncing to app freq
                                    (not syncing to refreshing of monitor)
    /WaitOneRetrace[:On|Off|Inv]    E/D waiting for at least one retrace

    /TextureBitDepth[:0|16|32]      Bit depth of D3D textures, 0 = optimal
    /PerfectTexEmu[:On|Off|Inv]     E/D perfect texture memory emu
    /StoreTexCopies[:On|Off|Inv]    E/D storing texture copies
    /DisableMipMap[:On|Off|Inv]     E/D mipmapping
    /ForceTriMipMap[:On|Off|Inv]    E/D forcing trilinear mipmapping
    /AutoGenMipmap[:On|Off|Inv]     E/D autogenerating mipmap levels

    /LfbAccess[:Enable|Disable|DisableRead|DisableWrite]
                                    Setting LFB acessing
    /HwCacheBuffs[:On|Off|Inv]      E/D hardware cache buffers
    /FastWriteUnmatch[:On|Off|Inv]  E/D fastwriting for unmatching formats
    /FastWriteMatch[:On|Off|Inv]    E/D fastwriting for matching formats
    /ColorFmtOnLfbFmt[:On|Off|Inv]  E/D Lfb read/write format affected by color format
    /RescaleChangesOnly[:On|Off|Inv]E/D rescaling only lfb changes at write
    /FlushAtUnlock[:On|Off|Inv]     E/D always flushing lfb changes when unlocking
    /NoMatchingFmt[:On|Off|Inv]     E/D no matching lfb formats
    /NoTextureTiles[:On|Off|Inv]    E/D texture tiles for lfb writing
    /LfbRealHw[:On|Off|Inv]         E/D closer to a real hardware

    /CKMethod[:Auto|Alpha|Native|NativeTNT]
                                    Setting colorkeying method, default: Auto
    /CKTntInFallback[:On|Off|Inv]   E/D using native TNT method when fallback in auto
    /AlphaRef[:Hex|Dec]             Alpha reference value for auto mode,
                                    range: 0-255, default: 0

    /TexMemSize[:Hex|Dec]           Texture memory size in kB, default: 8192

    /XRes[:Hex|Dec]                 Overrided horizontal resolution
    /YRes[:Hex|Dec]                 Overrided vertical resolution
                                    (X=0 and Y=0 means set by application)
    
    /Gamma[:Hex|Dec]                Gamma correction in percents,
                                    range: 0-400, default: 100

    /ForceTriBuff[:On|Off|Inv]      E/D forcing triple buffering
    /FixTR1[:On|Off|Inv]            E/D fixing shadow bug in TR1
    /ClipByD3D[:On|Off|Inv]         E/D geometry clipping by Direct3D
    /EnableGlideGRamp[:On|Off|Inv]  E/D Glide gamma ramp
    /HwVertexBuff[:On|Off|Inv]      E/D hardware vertex buffers
    /WBuffDetMethod[:ForceZ|ForceW|DriverFlag|DrawingTest]
                                    Setting W-buff emulation detection, def = DriverFlag
    /DepthColorEq[:On|Off|Inv]      E/D setting bit depth of depth buffer to the same
                                    as color buffer
    /ForceIndexed[:On|Off|Inv]      E/D forcing indexed primitives
    /PreferTMUW[:On|Off|Inv]        E/D preferring W of TMU when needed
    /TimerBoost[:Hex|Dec]           Timer boost period time in ms
                                    0 = boosting disabled, default = 80

    /UseVesa[:On|Off|Inv]           E/D built-in VESA support
    /VesaRefRate[:Hex|Dec]          VESA refresh rate in Hz, range: 45-70, default = 50
    /VesaMemSize[:Hex|Dec]          VESA videomemory in kB, default: 1024
    /Supp13[:On|Off|Inv]            E/D VGA mode 0x13 (320x200x8)
    /DisableFlat[:On|Off|Inv]       E/D Flat/Linear VESA modes

    /MirrorVert[:On|Off|Inv]        E/D mirroring the screen vertically
