Add basic custom profile support
This commit is contained in:
parent
2b0928bc37
commit
47d4e6b5de
@ -1,17 +1,20 @@
|
|||||||
[default]
|
[default]
|
||||||
# Set the path to the java executable. Don't add a file extension.
|
# Set the path to the java executable. Don't add a file extension
|
||||||
java=java
|
java=java
|
||||||
|
|
||||||
# Set the arguments to launch minecraft with. Formatted in json. Use [] for none.
|
# Set the arguments to launch minecraft with. Formatted in json. Use [] for none
|
||||||
jvmArguments=["-Xms128M","-Xmx800M"]
|
jvmArguments=["-Xms128M","-Xmx800M"]
|
||||||
|
|
||||||
# Enable/disable console.
|
# Enable/disable console
|
||||||
console=1
|
console=1
|
||||||
|
|
||||||
# Where is the game located?
|
# Where is the game located?
|
||||||
gamePath=$+sp$
|
gamePath=$+sp$
|
||||||
|
|
||||||
# Override the OS name. Choose windows, linux or macos, if the detection doesn't work right.
|
# Whether or not to make a profile folder, set to 1 to separate the data per player and version, set to 0 for compatibility
|
||||||
|
profileFolder=0
|
||||||
|
|
||||||
|
# Override the OS name. Choose windows, linux or macos, if the detection doesn't work right
|
||||||
osName=
|
osName=
|
||||||
|
|
||||||
# Override OS version
|
# Override OS version
|
||||||
|
@ -332,6 +332,12 @@ def main():
|
|||||||
launcherVariables["launcher_version"] = "0.0"
|
launcherVariables["launcher_version"] = "0.0"
|
||||||
launcherVariables["classpath"] = libraryList
|
launcherVariables["classpath"] = libraryList
|
||||||
|
|
||||||
|
if lv["profileFolder"] == "1":
|
||||||
|
profilePath = p(lv["gamePath"],"profiles")
|
||||||
|
launcherVariables["game_directory"] = p(profilePath,lv["name"],lv["version"])
|
||||||
|
if not os.path.isdir(launcherVariables["game_directory"]): os.makedirs(launcherVariables["game_directory"])
|
||||||
|
os.chdir(launcherVariables["game_directory"])
|
||||||
|
|
||||||
# legacy:
|
# legacy:
|
||||||
launcherVariables["game_assets"] = assetsPath
|
launcherVariables["game_assets"] = assetsPath
|
||||||
launcherVariables["auth_session"] = "-"
|
launcherVariables["auth_session"] = "-"
|
||||||
|
Loading…
Reference in New Issue
Block a user