Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
725851f5
Commit
725851f5
authored
Apr 22, 2022
by
Jaida Wu
Browse files
Allow configuration overrides
Signed-off-by:
Jaida Wu
<
mlgmxyysd@meowcat.org
>
parent
b336d899
Changes
2
Show whitespace changes
Inline
Side-by-side
start.cmd
View file @
725851f5
...
@@ -11,6 +11,8 @@ call :LOG [INFO] To proper exit this console, use [Ctrl + C] and enter N not Y.
...
@@ -11,6 +11,8 @@ call :LOG [INFO] To proper exit this console, use [Ctrl + C] and enter N not Y.
call
:LOG
[
INFO
]
call
:LOG
[
INFO
]
call
:LOG
[
INFO
]
Initializing
...
call
:LOG
[
INFO
]
Initializing
...
set
CONFIG
=
start_config
set
JAVA_PATH
=
DO_NOT_CHECK_PATH
set
JAVA_PATH
=
DO_NOT_CHECK_PATH
set
MITMDUMP_PATH
=
DO_NOT_CHECK_PATH
set
MITMDUMP_PATH
=
DO_NOT_CHECK_PATH
set
MONGODB_PATH
=
DO_NOT_CHECK_PATH
set
MONGODB_PATH
=
DO_NOT_CHECK_PATH
...
@@ -21,6 +23,10 @@ set DATABASE_STORAGE_PATH=%CUR_PATH%resources\Database
...
@@ -21,6 +23,10 @@ set DATABASE_STORAGE_PATH=%CUR_PATH%resources\Database
set
SERVER_JAR_NAME
=
grasscutter
.jar
set
SERVER_JAR_NAME
=
grasscutter
.jar
set
PROXY_SCRIPT_NAME
=
proxy
set
PROXY_SCRIPT_NAME
=
proxy
if
exist
"
%CUR_PATH%%
CONFIG
%
.cmd"
(
call
"
%CUR_PATH%%
CONFIG
%
.cmd"
>
nul
2
>
nul
)
if
not
"
%JAVA_PATH%
"
==
"DO_NOT_CHECK_PATH"
(
if
not
"
%JAVA_PATH%
"
==
"DO_NOT_CHECK_PATH"
(
if
not
exist
"
%JAVA_PATH%
java.exe"
(
if
not
exist
"
%JAVA_PATH%
java.exe"
(
call
:LOG
[
ERROR
]
Java
not
found
.
call
:LOG
[
ERROR
]
Java
not
found
.
...
...
start_config.cmd
0 → 100644
View file @
725851f5
@rem
@rem Copyright (C) 2002-2022 MlgmXyysd All Rights Reserved.
@rem
@echo
off
pushd
%~dp0
set
CUR_PATH
=
%~dp0
@rem This will not work if your java or mitmproxy is in a different location, plugin as necessary
@rem this just saves you from changing your PATH
@rem Executable Path
@rem Note: Fill DO_NOT_CHECK_PATH if you need to run it from PATH
@rem without detecting whether the executable file exists
set
JAVA_PATH
=
C
:\Program
Files
\Java\jdk1.8.0_202\bin\
set
MITMDUMP_PATH
=
%CUR_PATH%
set
MONGODB_PATH
=
%CUR_PATH%
@rem Utility Path
set
SERVER_JAR_PATH
=
%CUR_PATH%
set
DATABASE_STORAGE_PATH
=
%CUR_PATH%
resources
\Database
@rem Utility Name
set
SERVER_JAR_NAME
=
grasscutter
.jar
set
PROXY_SCRIPT_NAME
=
proxy
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment