forked from Minxyzgo/RWPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlauncher.bat
More file actions
42 lines (33 loc) · 792 Bytes
/
Copy pathlauncher.bat
File metadata and controls
42 lines (33 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
setlocal enabledelayedexpansion
set DestPath=%~dp0
set DestExt=*.jar*
set /a count=0
set /a lastName=0
for /f "usebackq delims=" %%a in (`dir /b/a-d/s "%DestPath%\%DestExt%"`) do (
set "name=%%~na"
set "c=!name:~0,18!"
set "c1=!name:~0,12!"
if "!c!"=="RWPP-multiplatform" (
set /a count+=1
set "lastName=%%a"
)
if "!c1!"=="RWPP-windows" (
set /a count+=1
set "lastName=%%a"
)
)
if %count% EQU 0 (
echo "No RWPP-multiplatform file exists"
pause
exit
)
if %count% GTR 1 (
echo "Multiple RWPP-multiplatform file exists"
pause
exit
)
if %count% EQU 1 (
java -D"java.net.preferIPv4Stack=true" -Xmx2000M -D"file.encoding=UTF-8" -D"prism.allowhidpi=false" -D"java.library.path=." -cp "!lastName!;generated_lib/*;extension/*;libs/*" io.github.rwpp.desktop.MainKt
)
pause