package pro.gravit.launcher.client; import pro.gravit.launcher.Launcher; import pro.gravit.launcher.LauncherTrustManager; import pro.gravit.launcher.modules.LauncherModule; import pro.gravit.launcher.modules.impl.SimpleModuleManager; import java.nio.file.Path; import java.util.Collections; import java.util.List; public final class ClientModuleManager extends SimpleModuleManager { public ClientModuleManager() { super(null, null, Launcher.getConfig().trustManager); } @Override public void autoload() { throw new UnsupportedOperationException(); } @Override public void autoload(Path dir) { throw new UnsupportedOperationException(); } @Override public LauncherModule loadModule(LauncherModule module) { return super.loadModule(module); } public List getModules() { return Collections.unmodifiableList(modules); } @Override public final boolean verifyClassCheckResult(LauncherTrustManager.CheckClassResult result) { return result.type == LauncherTrustManager.CheckClassResultType.SUCCESS; } }