mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-12-15 05:31:14 +01:00
29 lines
920 B
Batchfile
29 lines
920 B
Batchfile
|
@echo off
|
||
|
|
||
|
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 -f -c config.json config_LanClient.json config_MiniCabinet.json
|
||
|
start /min inject -d -k swdchook.dll amdaemon.exe -f -c config.json config_LanServer.json config_MiniCabinet.json
|
||
|
inject -d -k swdchook.dll ..\Todoroki\Binaries\Win64\Todoroki-Win64-Shipping.exe -launch=MiniCabinet -ABSLOG="..\..\..\..\..\Userdata\GameProject.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
|