swdc: updated config, fixed start.bat

This commit is contained in:
2023-09-05 00:23:17 +02:00
parent eb2eef927a
commit 80718104f6
5 changed files with 29 additions and 69 deletions

View File

@ -90,7 +90,7 @@ restrict=128
[dinput]
; Name of the DirectInput wheel to use (or any text that occurs in its name)
; Example: TMX
; Example: G29
;
; If this is left blank then the first DirectInput device will be used.
deviceName=
@ -99,22 +99,21 @@ deviceName=
; X, Y, Z, RX, RY, RZ, U, V
;
; (U and V are old names for Slider 1 and Slider 2).
; The examples below are valid for a Thrustmaster TMX.
; The examples below are valid for a Logitech G29.
brakeAxis=RZ
accelAxis=Y
; DirectInput button numbers to map to menu inputs. Note that buttons are
; numbered from 1; some software numbers buttons from 0.
start=3
viewChg=10
; Button mappings for the steering wheel paddles. Note shiftDn is the
; left paddle and shiftUp is the right paddle.
shiftDn=1
shiftUp=2
start=1
viewChg=2
; Button mappings for the steering wheel paddles.
paddleLeft=6
paddleRight=5
; Button mappings for the steering wheel buttons.
wheelGreen=4
wheelRed=5
wheelBlue=6
wheelYellow=7
wheelRed=7
wheelBlue=8
wheelYellow=9
wheelGreen=10
; Invert the accelerator and or brake axis
; (Needed when using DirectInput for the Dualshock 4 for example)
reverseAccelAxis=0

18
dist/swdc/start.bat vendored
View File

@ -2,28 +2,12 @@
pushd %~dp0
REM set the APP_DIR to the Y drive
set APP_DIR=Y:\SWDC
REM create the APP_DIR if it doesn't exist and redirect it to the TEMP folder
if not exist "%APP_DIR%" (
subst Y: %TEMP%
REM timeout /t 1
if not exist "%APP_DIR%" (
mkdir "%APP_DIR%"
)
)
echo Mounted the Y:\ drive to the %TEMP%\SWDC folder
REM start /min inject -d -k swdchook.dll amdaemon.exe -c config.json config_LanClient.json config_MiniCabinet.json config_hook.json
start /min inject -d -k swdchook.dll amdaemon.exe -c config.json config_LanServer.json config_MiniCabinet.json config_hook.json
REM Valid -launch parameters are "PC", "Cabinet" and "MiniCabinet
inject -d -k swdchook.dll ..\Todoroki\Binaries\Win64\Todoroki-Win64-Shipping.exe -launch=MiniCabinet -ABSLOG="..\..\..\..\..\Userdata\Todoroki.log" -UserDir="..\..\..\Userdata" -NotInstalled -UNATTENDED
taskkill /f /im amdaemon.exe > nul 2>&1
REM unmount the APP_DIR
subst Y: /d > nul 2>&1
echo.
echo Game processes have terminated
pause