mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Фикс автогенерации конфига
This commit is contained in:
parent
c9c867d8f3
commit
8329823f7a
2 changed files with 8 additions and 4 deletions
|
@ -617,9 +617,7 @@ private void generateConfigIfNotExists() throws IOException {
|
|||
newConfig.env = LauncherConfig.LauncherEnvironment.STD;
|
||||
newConfig.startScript = JVMHelper.OS_TYPE.equals(JVMHelper.OS.MUSTDIE) ? "." + File.separator + "start.bat" : "." + File.separator + "start.sh";
|
||||
newConfig.hwidHandler = new AcceptHWIDHandler();
|
||||
newConfig.auth = new AuthProviderPair[]{ new AuthProviderPair() };
|
||||
newConfig.auth[0].provider = new RejectAuthProvider("Настройте authProvider");
|
||||
newConfig.auth[0].handler = new MemoryAuthHandler();
|
||||
newConfig.auth = new AuthProviderPair[]{ new AuthProviderPair(new RejectAuthProvider("Настройте authProvider"), new MemoryAuthHandler(), "std") };
|
||||
newConfig.textureProvider = new RequestTextureProvider("http://example.com/skins/%username%.png", "http://example.com/cloaks/%username%.png");
|
||||
newConfig.permissionsHandler = new JsonFilePermissionsHandler();
|
||||
newConfig.port = 7240;
|
||||
|
|
|
@ -9,7 +9,13 @@ public class AuthProviderPair {
|
|||
public AuthProvider provider;
|
||||
public AuthHandler handler;
|
||||
public String name;
|
||||
public boolean isDefault;
|
||||
public boolean isDefault = true;
|
||||
|
||||
public AuthProviderPair(AuthProvider provider, AuthHandler handler, String name) {
|
||||
this.provider = provider;
|
||||
this.handler = handler;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void init()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue