mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[REFACTOR] Заключительная часть.
This commit is contained in:
parent
0d5dbe7794
commit
fd5803ca32
14 changed files with 15 additions and 3 deletions
|
@ -146,7 +146,7 @@ private static Serializer<?> serializerClass(int opcode) {
|
|||
@Override
|
||||
public InsnList serialize(Number value) {
|
||||
InsnList ret = new InsnList();
|
||||
ret.add(NodeUtils.push(((Number) value).intValue()));
|
||||
ret.add(NodeUtils.push(value.intValue()));
|
||||
ret.add(new InsnNode(opcode));
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -52,11 +52,13 @@ public static class authRequest {
|
|||
final String password;
|
||||
final String ip;
|
||||
String apiKey;
|
||||
|
||||
public authRequest(String username, String password, String ip) {
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public authRequest(String username, String password, String ip, String apiKey) {
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
|
|
|
@ -19,6 +19,7 @@ public final class RejectAuthProvider extends AuthProvider implements Reconfigur
|
|||
|
||||
public RejectAuthProvider() {
|
||||
}
|
||||
|
||||
public RejectAuthProvider(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ public class ProguardConf {
|
|||
public final Path mappings;
|
||||
public final Path words;
|
||||
public transient final LaunchServer srv;
|
||||
|
||||
public ProguardConf(LaunchServer srv) {
|
||||
proguard = srv.dir.resolve("proguard");
|
||||
config = proguard.resolve("proguard.config");
|
||||
|
|
|
@ -36,6 +36,7 @@ public class CertificateAutogenTask implements LauncherBuildTask {
|
|||
public X509CertificateHolder bcCertificate;
|
||||
public CMSSignedDataGenerator signedDataGenerator;
|
||||
private LaunchServer server;
|
||||
|
||||
public CertificateAutogenTask(LaunchServer server) {
|
||||
this.server = server;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ public class MainBuildTask implements LauncherBuildTask {
|
|||
public IOHookSet<BuildContext> preBuildHook = new IOHookSet<>();
|
||||
public IOHookSet<BuildContext> postBuildHook = new IOHookSet<>();
|
||||
public Map<String, Object> properties = new HashMap<>();
|
||||
|
||||
public MainBuildTask(LaunchServer srv) {
|
||||
server = srv;
|
||||
reader = new ClassMetadataReader();
|
||||
|
|
|
@ -24,6 +24,7 @@ public final class IndexAssetCommand extends Command {
|
|||
public static final String OBJECTS_DIR = "objects";
|
||||
private static final Gson gson = new Gson();
|
||||
private static final String JSON_EXTENSION = ".json";
|
||||
|
||||
public IndexAssetCommand(LaunchServer server) {
|
||||
super(server);
|
||||
}
|
||||
|
|
|
@ -122,6 +122,7 @@ public static class AuthContext {
|
|||
public final Client client;
|
||||
@Deprecated
|
||||
public int password_length; //Use AuthProvider for get password
|
||||
|
||||
public AuthContext(Client client, String login, String profileName, String ip, ConnectTypes authType) {
|
||||
this.client = client;
|
||||
this.login = login;
|
||||
|
|
|
@ -7,6 +7,7 @@ public class ExceptionEvent extends RequestEvent {
|
|||
public final String message;
|
||||
@LauncherNetworkAPI
|
||||
public final String clazz;
|
||||
|
||||
public ExceptionEvent(Exception e) {
|
||||
this.message = e.getMessage();
|
||||
this.clazz = e.getClass().getName();
|
||||
|
|
|
@ -17,6 +17,7 @@ public class AuthRequestEvent extends RequestEvent {
|
|||
public String protectToken;
|
||||
@LauncherNetworkAPI
|
||||
public long session;
|
||||
|
||||
public AuthRequestEvent() {
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ public GetAvailabilityAuthRequestEvent(List<AuthAvailability> list) {
|
|||
this.list = list;
|
||||
this.features = ServerFeature.FEATURE_SUPPORT.val;
|
||||
}
|
||||
|
||||
public GetAvailabilityAuthRequestEvent(List<AuthAvailability> list, long features) {
|
||||
this.list = list;
|
||||
this.features = features;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
@Retention(CLASS)
|
||||
@Target(FIELD)
|
||||
public @interface LauncherInject {
|
||||
public String value(); // target of inject
|
||||
String value(); // target of inject
|
||||
|
||||
}
|
||||
|
|
|
@ -69,6 +69,7 @@ public final class LogHelper {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private LogHelper() {
|
||||
}
|
||||
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit 07e4380ad52c4ef08378b8eb2202d8a1bd3639a2
|
||||
Subproject commit fc31be1ed9ce7cc57e8c33d7de80d75261d39aef
|
Loading…
Reference in a new issue