mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] Запись protectToken d параметры wrapper'а
This commit is contained in:
parent
37be6b86c3
commit
dc2a978716
3 changed files with 7 additions and 3 deletions
|
@ -46,6 +46,6 @@ public void addCustomEnv(ClientLauncherContext context) {
|
|||
|
||||
@Override
|
||||
public void setProtectToken(String token) {
|
||||
|
||||
//Skip
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,6 @@ public void addCustomEnv(ClientLauncherContext context) {
|
|||
|
||||
@Override
|
||||
public void setProtectToken(String token) {
|
||||
|
||||
//Skip
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
import java.util.Map;
|
||||
|
||||
public class LauncherWrapperGuard implements LauncherGuardInterface {
|
||||
|
||||
public String protectToken;
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "wrapper";
|
||||
|
@ -62,6 +65,7 @@ public void addCustomEnv(ClientLauncherContext context) {
|
|||
env.put("GUARD_USERNAME", context.playerProfile.username);
|
||||
env.put("GUARD_PUBLICKEY", config.publicKey.getModulus().toString(16));
|
||||
env.put("GUARD_PROJECTNAME", config.projectname);
|
||||
env.put("GUARD_TOKEN", protectToken);
|
||||
if(config.guardLicenseName != null)
|
||||
env.put("GUARD_LICENSE_NAME", config.guardLicenseName);
|
||||
if(config.guardLicenseKey != null)
|
||||
|
@ -72,6 +76,6 @@ public void addCustomEnv(ClientLauncherContext context) {
|
|||
|
||||
@Override
|
||||
public void setProtectToken(String token) {
|
||||
|
||||
protectToken = token;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue