Controller$2.smali
.class Lcom/sandboxol/blocky/router/Controller$2;
.super Ljava/lang/Object;
.source "Controller.java"
# interfaces
.implements Lcom/sandboxol/center/provider/MultiThreadHelper$AsyncRun;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/blocky/router/Controller;->initData(Lrx/functions/Action1;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/sandboxol/center/provider/MultiThreadHelper$AsyncRun<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/sandboxol/blocky/router/Controller;
.field final synthetic val$callback:Lrx/functions/Action1;
# direct methods
.method constructor <init>(Lcom/sandboxol/blocky/router/Controller;Lrx/functions/Action1;)V
.registers 3
.line 1
iput-object p1, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
iput-object p2, p0, Lcom/sandboxol/blocky/router/Controller$2;->val$callback:Lrx/functions/Action1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onError(Ljava/lang/Throwable;)V
.registers 2
return-void
.end method
.method public onExecute()Ljava/lang/Boolean;
.registers 7
.line 2
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->getCurUseEngineTypeInGame()I
move-result v0
invoke-static {v0}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->getInstance(I)Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;->isLoadSo()Z
move-result v0
const-string v1, "Main"
if-nez v0, :cond_84
.line 3
iget-object v0, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v0}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->isNewStartMadel()Z
move-result v0
.line 4
iget-object v2, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v2}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v2
invoke-virtual {v2}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getGame()Lcom/sandboxol/greendao/entity/Game;
move-result-object v2
invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/Game;->getGameId()Ljava/lang/String;
move-result-object v2
.line 5
iget-object v3, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v3}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v3
invoke-virtual {v3}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getCountry()Ljava/lang/String;
move-result-object v3
.line 6
iget-object v4, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v4}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v4
invoke-virtual {v4}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getGame()Lcom/sandboxol/greendao/entity/Game;
move-result-object v4
invoke-virtual {v4}, Lcom/sandboxol/greendao/entity/Game;->getIsNewEngine()I
move-result v4
.line 7
iget-object v5, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v5}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v5
invoke-virtual {v5}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getGame()Lcom/sandboxol/greendao/entity/Game;
move-result-object v5
invoke-virtual {v5}, Lcom/sandboxol/greendao/entity/Game;->getIsUgc()I
move-result v5
.line 8
invoke-static {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->switchEngine(II)V
.line 9
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->getCurUseEngineTypeInGame()I
move-result v4
invoke-static {v4}, Lcom/sandboxol/center/router/moduleInfo/game/EngineEnv;->getInstance(I)Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;
move-result-object v4
iget-object v5, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
iget-object v5, v5, Lcom/sandboxol/blocky/router/Controller;->mContext:Landroid/content/Context;
invoke-virtual {v4, v5}, Lcom/sandboxol/center/router/moduleInfo/game/AbstractEngineEnv;->loadSO(Landroid/content/Context;)V
.line 10
iget-object v4, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
iget-object v4, v4, Lcom/sandboxol/blocky/router/Controller;->mContext:Landroid/content/Context;
invoke-static {v4}, Lcom/sandboxol/blockmango/EchoesHelper;->initContent(Landroid/content/Context;)V
.line 11
iget-object v4, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v4}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v4
invoke-virtual {v4}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getMapUrl()Ljava/lang/String;
move-result-object v4
iget-object v5, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# getter for: Lcom/sandboxol/blocky/router/Controller;->mEnterRealmsResult:Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
invoke-static {v5}, Lcom/sandboxol/blocky/router/Controller;->access$100(Lcom/sandboxol/blocky/router/Controller;)Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;
move-result-object v5
invoke-virtual {v5}, Lcom/sandboxol/center/router/moduleInfo/game/EnterRealmsResult;->getMapId()Ljava/lang/String;
move-result-object v5
invoke-static {v2, v3, v4, v5, v0}, Lcom/sandboxol/blockmango/EchoesRenderer;->handlePreInit(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
const-string v0, "so on game main init end."
.line 12
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_89
:cond_84
const-string v0, "so on game service init."
.line 13
invoke-static {v1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
:goto_89
const/4 v0, 0x1
.line 14
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic onExecute()Ljava/lang/Object;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/sandboxol/blocky/router/Controller$2;->onExecute()Ljava/lang/Boolean;
move-result-object v0
return-object v0
.end method
.method public onSuccess(Ljava/lang/Boolean;)V
.registers 3
.line 2
iget-object p1, p0, Lcom/sandboxol/blocky/router/Controller$2;->val$callback:Lrx/functions/Action1;
if-nez p1, :cond_a
.line 3
iget-object p1, p0, Lcom/sandboxol/blocky/router/Controller$2;->this$0:Lcom/sandboxol/blocky/router/Controller;
# invokes: Lcom/sandboxol/blocky/router/Controller;->initClient()V
invoke-static {p1}, Lcom/sandboxol/blocky/router/Controller;->access$200(Lcom/sandboxol/blocky/router/Controller;)V
goto :goto_12
:cond_a
const/4 v0, 0x1
.line 4
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
:goto_12
return-void
.end method
.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Ljava/lang/Boolean;
invoke-virtual {p0, p1}, Lcom/sandboxol/blocky/router/Controller$2;->onSuccess(Ljava/lang/Boolean;)V
return-void
.end method