Skip to content

Commit 0ec7b5c

Browse files
committed
Allow passing title id to skip Cemu's game list and launch game directly
1 parent 3cca069 commit 0ec7b5c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

resources/BetterVR LAUNCH CEMU IN VR.bat

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,22 @@ reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
138138
if "%ERRORLEVEL%"=="0" (
139139
set "UAC_DISABLED=1"
140140
call :Log "WARN: UAC is disabled (ConsentPromptBehaviorAdmin=0x0)."
141-
call :Popup "Warning: UAC is disabled. This forces Cemu to run as Administrator, which may break VR functionality. Attempting to launch with reduced permissions." "BetterVR Warning"
141+
call :Popup "Warning: UAC is disabled. This forces Cemu to run as Administrator, which may break VR functionality." "BetterVR Warning"
142142
) else (
143143
call :Log "INFO: UAC is enabled."
144144
)
145145

146-
start "" "%CEMU_EXE%"
146+
:: %~1 captures the title-id of the game
147+
set "GAME_ID=%~1"
148+
149+
if "%GAME_ID%"=="" (
150+
call :Log "No Title ID provided. Launching Cemu menu."
151+
start "" "%CEMU_EXE%"
152+
) else (
153+
call :Log "Launching Game ID: %GAME_ID%"
154+
start "" "%CEMU_EXE%" -t %GAME_ID%
155+
)
156+
147157
exit /b 0
148158

149159

0 commit comments

Comments
 (0)