QString java = "C:/Program Files/Java/jre7/bin/javaw.exe"; QString Version = "1.6.2"; QString DirGame = ".minecraft"; QString username = "madrigall"; QString app = QDir::homePath() + "/Application Data/"; QStringList arguments; arguments <<QString("-Xmx%1m").arg("1000"); arguments <<QString("-Djava.library.path=%1%2/versions/%3/navites").arg(app).arg(DirGame).arg(Version); arguments << " -cp "; arguments <<QString("%1%2/libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/argo/argo/2.25_fixed/argo-2.25_fixed.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar;").arg(app).arg(DirGame); arguments <<QString("%1%2/versions/%3/%3.jar").arg(app).arg(DirGame).arg(Version); arguments <<QString("net.minecraft.client.main.Main --username %1 --session %2 --version %3 --gameDir %4%5 --assetsDir %4%5/assets").arg(username).arg("111111").arg(Version).arg(app).arg(DirGame); StartGame->startDetached(java, arguments);
-Xmx512M -Djava.library.path=C:\Documents and Settings\Админ\Application Data\.minecraft\versions\1.6.2\1.6.2-natives-7203276860885 -cp C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\argo\argo\2.25_fixed\argo-2.25_fixed.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\org\bouncycastle\bcprov-jdk15on\1.47\bcprov-jdk15on-1.47.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\google\guava\guava\14.0\guava-14.0.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\com\google\code\gson\gson\2.2.2\gson-2.2.2.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar;C:\Documents and Settings\Админ\Application Data\.minecraft\versions\1.6.2\1.6.2.jar net.minecraft.client.main.Main --username Otr0k--session token:571ca3b9c14148fa88be49112137ad9c:6c90fb68c2864968ac4a9fc0f6df0b7e --version 1.6.2 --gameDir C:\Documents and Settings\Админ\Application Data\.minecraft --assetsDir C:\Documents and Settings\Админ\Application Data\.minecraft\assets
arguments <<QString("%1%2/libraries/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar;").arg(app).arg(DirGame);