mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Fix type signatures
This commit is contained in:
parent
434fc8af05
commit
19b5aabc82
1 changed files with 40 additions and 40 deletions
|
@ -25,7 +25,7 @@ public class JAConfigurator {
|
||||||
private static final String modulesManagerName = Type.getInternalName(ModulesManager.class);
|
private static final String modulesManagerName = Type.getInternalName(ModulesManager.class);
|
||||||
private static final String registerModDesc = Type.getMethodDescriptor(Type.VOID_TYPE, Type.getType(Module.class));
|
private static final String registerModDesc = Type.getMethodDescriptor(Type.VOID_TYPE, Type.getType(Module.class));
|
||||||
private static final String autoGenConfigName = Type.getInternalName(AutogenConfig.class);
|
private static final String autoGenConfigName = Type.getInternalName(AutogenConfig.class);
|
||||||
private static final String stringName = Type.getInternalName(String.class);
|
private static final String stringDesc = Type.getDescriptor(String.class);
|
||||||
private final ClassNode configclass;
|
private final ClassNode configclass;
|
||||||
private final MethodNode constructor;
|
private final MethodNode constructor;
|
||||||
private final MethodNode initModuleMethod;
|
private final MethodNode initModuleMethod;
|
||||||
|
@ -56,28 +56,28 @@ public String getZipEntryPath() {
|
||||||
|
|
||||||
public void setAddress(String address) {
|
public void setAddress(String address) {
|
||||||
constructor.instructions.add(new LdcInsnNode(address));
|
constructor.instructions.add(new LdcInsnNode(address));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "address", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "address", stringDesc));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProjectName(String name) {
|
public void setProjectName(String name) {
|
||||||
constructor.instructions.add(new LdcInsnNode(name));
|
constructor.instructions.add(new LdcInsnNode(name));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "projectname", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "projectname", stringDesc));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSecretKey(String key) {
|
public void setSecretKey(String key) {
|
||||||
constructor.instructions.add(new LdcInsnNode(key));
|
constructor.instructions.add(new LdcInsnNode(key));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "secretKeyClient", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "secretKeyClient", stringDesc));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOemUnlockKey(String key) {
|
public void setOemUnlockKey(String key) {
|
||||||
constructor.instructions.add(new LdcInsnNode(key));
|
constructor.instructions.add(new LdcInsnNode(key));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "oemUnlockKey", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "oemUnlockKey", stringDesc));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGuardType(String key) {
|
public void setGuardType(String key) {
|
||||||
constructor.instructions.add(new LdcInsnNode(key));
|
constructor.instructions.add(new LdcInsnNode(key));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardType", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardType", stringDesc));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void push(final int value) {
|
public void push(final int value) {
|
||||||
|
@ -124,19 +124,19 @@ public void setWarningMissArchJava(boolean b) {
|
||||||
|
|
||||||
public void setGuardLicense(String name, String key, String encryptKey) {
|
public void setGuardLicense(String name, String key, String encryptKey) {
|
||||||
constructor.instructions.add(new LdcInsnNode(name));
|
constructor.instructions.add(new LdcInsnNode(name));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseName", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseName", stringDesc));
|
||||||
constructor.instructions.add(new LdcInsnNode(key));
|
constructor.instructions.add(new LdcInsnNode(key));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseKey", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseKey", stringDesc));
|
||||||
constructor.instructions.add(new LdcInsnNode(encryptKey));
|
constructor.instructions.add(new LdcInsnNode(encryptKey));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseEncryptKey", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseEncryptKey", stringDesc));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void nullGuardLicense() {
|
public void nullGuardLicense() {
|
||||||
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseName", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseName", stringDesc));
|
||||||
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseKey", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseKey", stringDesc));
|
||||||
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
constructor.instructions.add(new InsnNode(Opcodes.ACONST_NULL));
|
||||||
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseEncryptKey", stringName));
|
constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, autoGenConfigName, "guardLicenseEncryptKey", stringDesc));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue