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/_NO-MOUSE-INTEGRATION.bat

22 lines
644 B
Batchfile
Raw Normal View History

2023-11-18 16:56:10 +00:00
@echo off
pushd "%~dp0"
cd ..
echo Disabling mouse integration
powershell "Get-Content 'dosbox-x.conf' | Foreach-Object {$_ -replace '^integration device.+$','integration device = false'} | 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 ps2 >> ".\guest_tools\runonce\runonce.bat"
if not exist ".\guest_tools\runonce\setmdrv.exe" (
copy ".\guest_tools\setmdrv\setmdrv.exe" ".\guest_tools\runonce\setmdrv.exe"
)