Skip to content

Commit deb1795

Browse files
committed
use specific x86 check
1 parent bb94cd4 commit deb1795

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎start-windows-x86.bat‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
rem change to the directory where the script itself; this is required when running as an administrator
33
cd /d "%~dp0"
44

5+
rem check if 64-bit OS, which shouldn't be
6+
if exist "%SYSTEMROOT%\SysWOW64" ( goto JAVA_ARCH )
7+
58
rem check if java is installed
69
java -help 2> nul
710
if not %errorlevel% equ 0 ( goto JAVA_MISSING )
@@ -24,7 +27,6 @@ echo Running JPCSP 32-bit...
2427
-Dorg.lwjgl.system.allocator=system^
2528
-classpath "bin/jpcsp.jar;lib/lwjgl-3.2.3/lwjgl.jar;lib/lwjgl-3.2.3/lwjgl-openal.jar;lib/lwjgl-3.2.3/lwjgl-opengl.jar;lib/lwjgl-3.2.3/lwjgl-jawt.jar;lib/lwjgl-3.2.3/lwjgl-natives-windows-x86.jar;lib/lwjgl-3.2.3/lwjgl-openal-natives-windows-x86.jar;lib/lwjgl-3.2.3/lwjgl-opengl-natives-windows-x86.jar;lib/lwjgl-3.2.3/lwjgl-glfw.jar;lib/lwjgl-3.2.3/lwjgl-glfw-natives-windows-x86.jar"^
2629
jpcsp.MainGUI %*
27-
if not %errorlevel% equ 0 ( goto JAVA_ARCH )
2830
goto END
2931

3032
:JAVA_MISSING

0 commit comments

Comments
 (0)