mirror of
https://github.com/Kron4ek/minecraft-vortex-launcher.git
synced 2025-03-04 03:03:10 -05:00
Revert "Change working directory to current directory"
Because that doesn't work with app bundle format
This commit is contained in:
parent
7308469d73
commit
680849002c
@ -1,8 +1,7 @@
|
||||
EnableExplicit
|
||||
|
||||
Define.s pathToProgram = GetPathPart(ProgramFilename())
|
||||
Define.s workingDirectory = GetHomeDirectory() + "Library/Application Support/minecraft_vlauncher"
|
||||
Global.s tempDirectory = GetTemporaryDirectory()
|
||||
Define.s workingDirectory
|
||||
|
||||
Global.i downloadOkButton
|
||||
Global.i downloadThreadsAmount
|
||||
@ -28,7 +27,7 @@ Define.s uuid
|
||||
|
||||
Define.i downloadThread, downloadMissingLibraries, jsonArgumentsMember, jsonArgumentsModernMember, jsonInheritsFromMember
|
||||
Define.i downloadMissingLibrariesGadget, downloadThreadsGadget, asyncDownloadGadget, saveSettingsButton, useCustomJavaGadget, useCustomParamsGadget
|
||||
Define.i i, n
|
||||
Define.i i
|
||||
|
||||
Define.s playerNameDefault = "Name", ramAmountDefault = "1024", javaBinaryPathDefault = "/usr/bin/java"
|
||||
Define.s customLaunchArgumentsDefault = "-XstartOnFirstThread -Xss1M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M"
|
||||
@ -57,9 +56,9 @@ Declare.s parseLibraries(clientVersion.s, prepareForDownload.i = 0)
|
||||
Declare.s fileRead(pathToFile.s)
|
||||
Declare.s removeSpacesFromVersionName(clientVersion.s)
|
||||
|
||||
For n = 1 To CountString(pathToProgram, "/") - 3
|
||||
workingDirectory + StringField(pathToProgram, n, "/") + "/"
|
||||
Next
|
||||
If Not FileSize(workingDirectory) = -2
|
||||
CreateDirectory(workingDirectory)
|
||||
EndIf
|
||||
|
||||
SetCurrentDirectory(workingDirectory)
|
||||
OpenPreferences("vortex_launcher.conf")
|
||||
|
Loading…
Reference in New Issue
Block a user