Launcher/LauncherClient/src/main/java/pro/gravit/launcher/client/ClientModuleManager.java

41 lines
1.1 KiB
Java
Raw Normal View History

package pro.gravit.launcher.client;
2018-09-17 10:07:32 +03:00
2019-10-18 15:10:04 +03:00
import pro.gravit.launcher.Launcher;
2020-04-05 10:27:04 +03:00
import pro.gravit.launcher.LauncherTrustManager;
2019-08-31 15:44:43 +03:00
import pro.gravit.launcher.modules.LauncherModule;
import pro.gravit.launcher.modules.impl.SimpleModuleManager;
2019-10-19 19:46:04 +03:00
import java.nio.file.Path;
2022-07-24 12:24:25 +03:00
import java.util.Collections;
import java.util.List;
2019-10-19 19:46:04 +03:00
2021-03-09 20:32:52 +03:00
public final class ClientModuleManager extends SimpleModuleManager {
public ClientModuleManager() {
2019-10-18 15:10:04 +03:00
super(null, null, Launcher.getConfig().trustManager);
}
@Override
2019-10-19 19:43:25 +03:00
public void autoload() {
throw new UnsupportedOperationException();
2018-09-17 10:07:32 +03:00
}
@Override
2019-10-19 19:43:25 +03:00
public void autoload(Path dir) {
throw new UnsupportedOperationException();
2018-09-17 10:07:32 +03:00
}
2019-10-18 15:10:04 +03:00
@Override
public LauncherModule loadModule(LauncherModule module) {
return super.loadModule(module);
}
2022-07-24 12:24:25 +03:00
public List<LauncherModule> getModules() {
return Collections.unmodifiableList(modules);
}
@Override
public final boolean verifyClassCheckResult(LauncherTrustManager.CheckClassResult result) {
return result.type == LauncherTrustManager.CheckClassResultType.SUCCESS;
}
2018-09-17 10:07:32 +03:00
}