-
Notifications
You must be signed in to change notification settings - Fork 0
/
launcher.cmd
30 lines (30 loc) · 939 Bytes
/
launcher.cmd
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
@echo off
chcp 65001 > nul
set config.auto_launch=0
set config.show_verbose_info=0
set config.window_title=CRCSN Launcher
set launch.tag=std
set launch.version=v5.11.1
set launch.arch=x86_64
set launch.runtime=ucrt
set launch.args=
title %config.window_title%
mode con cols=50 lines=25
cd /d "%~dp0"
%1
if %config.auto_launch% == 0 (
echo [ CRCSN Launcher ]
echo.
echo ^(C^) 2023 - present MaxLHy0424.
echo.
if %config.show_verbose_info% == 0 (
echo 按任意键启动 CRCSN.
) else (
echo 按任意键启动 CRCSN ^(%launch.tag%, %launch.version%, %launch.arch%, %launch.runtime%^).
)
pause > nul
)
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto:launch","","runas",1)(window.close) & goto:eof
:launch
start .\bin\%launch.version%\%launch.tag%-%launch.arch%-%launch.runtime%.exe %launch.args%
exit /b