[FIX] Фикс runtime части

This commit is contained in:
Gravit 2019-04-04 19:22:06 +07:00
parent fefafc30c1
commit 2590ee7533
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
3 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ function makeProfilesRequest(callback) {
startTask(task); startTask(task);
} }
function makeSetProfileRequest(profile, callback) { function makeSetProfileRequest(profile, callback) {
var task = newRequestTask(new SetProfileRequest(Launcher.getConfig(), profile)); var task = newRequestTask(new SetProfileRequest(profile));
// Set task properties and start // Set task properties and start
processing.setTaskProperties(task, callback, function() { processing.setTaskProperties(task, callback, function() {

View file

@ -17,7 +17,6 @@ var ServerPinger = ServerPingerClass.static;
var Request = RequestClass.static; var Request = RequestClass.static;
var RequestType = RequestTypeClass.static; var RequestType = RequestTypeClass.static;
var RequestException = RequestExceptionClass.static; var RequestException = RequestExceptionClass.static;
var CustomRequest = CustomRequestClass.static;
var PingRequest = PingRequestClass.static; var PingRequest = PingRequestClass.static;
var AuthRequest = AuthRequestClass.static; var AuthRequest = AuthRequestClass.static;
var JoinServerRequest = JoinServerRequestClass.static; var JoinServerRequest = JoinServerRequestClass.static;

View file

@ -52,6 +52,7 @@ public LauncherConfig(HInput input) throws IOException, InvalidKeySpecException
guardLicenseEncryptKey = config.guardLicenseEncryptKey; guardLicenseEncryptKey = config.guardLicenseEncryptKey;
guardLicenseKey = config.guardLicenseKey; guardLicenseKey = config.guardLicenseKey;
guardLicenseName = config.guardLicenseName; guardLicenseName = config.guardLicenseName;
address = config.address;
LauncherEnvironment env; LauncherEnvironment env;
if (config.env == 0) env = LauncherEnvironment.DEV; if (config.env == 0) env = LauncherEnvironment.DEV;
else if (config.env == 1) env = LauncherEnvironment.DEBUG; else if (config.env == 1) env = LauncherEnvironment.DEBUG;