mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Доступ из модуля к созданию своих защит
This commit is contained in:
parent
b9761637db
commit
0cab4f254e
1 changed files with 19 additions and 16 deletions
|
@ -9,22 +9,25 @@ public class LauncherGuardManager {
|
|||
public static LauncherGuardInterface guard;
|
||||
|
||||
public static void initGuard(boolean clientInstance) {
|
||||
LauncherConfig config = Launcher.getConfig();
|
||||
switch (config.guardType) {
|
||||
case "gravitguard": {
|
||||
guard = new LauncherStdGuard();
|
||||
break;
|
||||
}
|
||||
case "wrapper": {
|
||||
guard = new LauncherWrapperGuard();
|
||||
break;
|
||||
}
|
||||
case "java": {
|
||||
guard = new LauncherJavaGuard();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
guard = new LauncherNoGuard();
|
||||
if(guard == null)
|
||||
{
|
||||
LauncherConfig config = Launcher.getConfig();
|
||||
switch (config.guardType) {
|
||||
case "stdguard": {
|
||||
guard = new LauncherStdGuard();
|
||||
break;
|
||||
}
|
||||
case "wrapper": {
|
||||
guard = new LauncherWrapperGuard();
|
||||
break;
|
||||
}
|
||||
case "java": {
|
||||
guard = new LauncherJavaGuard();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
guard = new LauncherNoGuard();
|
||||
}
|
||||
}
|
||||
}
|
||||
guard.init(clientInstance);
|
||||
|
|
Loading…
Reference in a new issue