This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
cb-legacy-dev/installers/dosboxw95/CONFIG_SCRIPTS/_USE-MOUSE-INTEGRATION.bat
2023-11-18 17:56:10 +01:00

22 lines
644 B
Batchfile

@echo off
pushd "%~dp0"
cd ..
echo Disabling mouse integration
powershell "Get-Content 'dosbox-x.conf' | Foreach-Object {$_ -replace '^integration device.+$','integration device = true'} | Set-Content 'dosbox-x.new'"
if exist "dosbox-x.new" (
del /Q dosbox-x.conf.bak
rename dosbox-x.conf dosbox-x.conf.bak
rename dosbox-x.new dosbox-x.conf
)
REM del /Q ".\guest_tools\runonce\runonce.bat"
echo @echo off >> ".\guest_tools\runonce\runonce.bat"
echo O:\setmdrv.exe dbox >> ".\guest_tools\runonce\runonce.bat"
if not exist ".\guest_tools\runonce\setmdrv.exe" (
copy ".\guest_tools\setmdrv\setmdrv.exe" ".\guest_tools\runonce\setmdrv.exe"
)