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,9 +9,11 @@ public class LauncherGuardManager {
|
||||||
public static LauncherGuardInterface guard;
|
public static LauncherGuardInterface guard;
|
||||||
|
|
||||||
public static void initGuard(boolean clientInstance) {
|
public static void initGuard(boolean clientInstance) {
|
||||||
|
if(guard == null)
|
||||||
|
{
|
||||||
LauncherConfig config = Launcher.getConfig();
|
LauncherConfig config = Launcher.getConfig();
|
||||||
switch (config.guardType) {
|
switch (config.guardType) {
|
||||||
case "gravitguard": {
|
case "stdguard": {
|
||||||
guard = new LauncherStdGuard();
|
guard = new LauncherStdGuard();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -27,6 +29,7 @@ public static void initGuard(boolean clientInstance) {
|
||||||
guard = new LauncherNoGuard();
|
guard = new LauncherNoGuard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
guard.init(clientInstance);
|
guard.init(clientInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue