fixed an issue with mods using ./
parent
ccf1e566e8
commit
7959384339
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#why does the bang not work?
|
#why does the bang not work?
|
||||||
import urllib2, json, os, sys
|
import urllib2, json, os, sys
|
||||||
print "LinuxMint4Ever's EarlyLauncher version BETA 2.3"
|
print "LinuxMint4Ever's EarlyLauncher version BETA 2.4"
|
||||||
|
|
||||||
#globally used variables
|
#globally used variables
|
||||||
config = []
|
config = []
|
||||||
|
@ -108,7 +108,11 @@ def getToken(username, password):
|
||||||
return access_token, profile_id, username
|
return access_token, profile_id, username
|
||||||
|
|
||||||
def run(java_executable, ram, alignTo, libs, username, gameDir, assets, uuid, accessToken):
|
def run(java_executable, ram, alignTo, libs, username, gameDir, assets, uuid, accessToken):
|
||||||
return(os.system(java_executable+" -Xmx"+ram+alignTo+" -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path="+os.path.join(libs, "natives")+" -cp "+os.path.join(libs,"jar")+os.sep+(":"+os.path.join(libs,"jar")+os.sep).join(os.listdir(os.path.join(libs,"jar")))+" net.minecraft.launchwrapper.Launch --username "+username+" --version 1.7.10-Forge10.13.4.1614-1.7.10 --gameDir "+gameDir+" --assetsDir "+assets+" --assetIndex 1.7.10 --uuid "+str(uuid)+" --accessToken "+accessToken+" --userProperties {} --userType mojang --tweakClass cpw.mods.fml.common.launcher.FMLTweaker"))
|
cwd = os.getcwd()
|
||||||
|
os.chdir(gameDir)
|
||||||
|
exitCode = os.system(java_executable+" -Xmx"+ram+alignTo+" -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path="+os.path.join(libs, "natives")+" -cp "+os.path.join(libs,"jar")+os.sep+(":"+os.path.join(libs,"jar")+os.sep).join(os.listdir(os.path.join(libs,"jar")))+" net.minecraft.launchwrapper.Launch --username "+username+" --version 1.7.10-Forge10.13.4.1614-1.7.10 --gameDir "+gameDir+" --assetsDir "+assets+" --assetIndex 1.7.10 --uuid "+str(uuid)+" --accessToken "+accessToken+" --userProperties {} --userType mojang --tweakClass cpw.mods.fml.common.launcher.FMLTweaker")
|
||||||
|
os.chdir(cwd)
|
||||||
|
return exitCode
|
||||||
|
|
||||||
if main:
|
if main:
|
||||||
loadConfig()
|
loadConfig()
|
||||||
|
|
Reference in New Issue