mirror of
https://github.com/Kron4ek/minecraft-vortex-launcher.git
synced 2025-03-04 03:03:10 -05:00
Make the launcher compatible with macOS app bundle format
This commit is contained in:
parent
e7971acb24
commit
287bf1b850
@ -1,6 +1,6 @@
|
||||
EnableExplicit
|
||||
|
||||
Define.s workingDirectory = GetPathPart(ProgramFilename())
|
||||
Define.s workingDirectory = GetHomeDirectory() + "Library/Application Support/minecraft_vlauncher"
|
||||
Global.s tempDirectory = GetTemporaryDirectory()
|
||||
|
||||
Global.i downloadOkButton
|
||||
@ -56,6 +56,10 @@ Declare.s parseLibraries(clientVersion.s, prepareForDownload.i = 0)
|
||||
Declare.s fileRead(pathToFile.s)
|
||||
Declare.s removeSpacesFromVersionName(clientVersion.s)
|
||||
|
||||
If Not FileSize(workingDirectory) = -2
|
||||
CreateDirectory(workingDirectory)
|
||||
EndIf
|
||||
|
||||
SetCurrentDirectory(workingDirectory)
|
||||
OpenPreferences("vortex_launcher.conf")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user