[Asm] 纯文本查看 复制代码
.method public logic_activate()V
.locals 8
const/4 v7, 0x2
const/4 v6, 0x1
const/high16 v5, 0x800
const/4 v4, 0x0
const/16 v3, 0x32
sget v0, Lcom/FrameWork/Screen_Main;->activate:I
goto/16 :goto_1 #【注释:这里就是添加的强制代码】
packed-switch v0, :pswitch_data_0
:cond_0
:goto_0
return-void
:pswitch_0
iget-boolean v0, p0, Lcom/FrameWork/Screen_Main;->b:Z
if-nez v0, :cond_0
iget v0, p0, Lcom/FrameWork/Screen_Main;->curPage:I
packed-switch v0, :pswitch_data_1
goto :goto_0
:pswitch_1
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_1
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_WIDTH:I
add-int/2addr v0, v1
sub-int/2addr v0, v3
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_1
invoke-static {v7}, Lcom/FrameWork/GameScreen;->changeSubScreen(I)V
goto :goto_0
:cond_1
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_0
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_0
iput v6, p0, Lcom/FrameWork/Screen_Main;->curPage:I
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, ""是否确认购买正版验证?"
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto :goto_0
:pswitch_2
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_2
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_WIDTH:I
add-int/2addr v0, v1
sub-int/2addr v0, v3
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_2
iput v4, p0, Lcom/FrameWork/Screen_Main;->curPage:I
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "购买正版验证,可获得游戏后续关卡,信息费5元(不含通信费),通过短信代收,是否确认购买?"
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto :goto_0
:cond_2
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_0
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0}, Lcom/FrameWork/Screen_Main;->sendMessage()V
iput-boolean v6, p0, Lcom/FrameWork/Screen_Main;->b:Z
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "发送中...."
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto/16 :goto_0
:pswitch_3
sput v4, Lcom/FrameWork/Screen_Main;->activate:I
goto/16 :goto_0
:pswitch_4
invoke-static {v7}, Lcom/FrameWork/GameScreen;->changeSubScreen(I)V
sput v4, Lcom/FrameWork/Screen_Main;->activate:I
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "ACTIVATE_CANCEL======"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
sget v2, Lcom/FrameWork/Screen_Main;->activate:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
const/4 v0, -0x1
invoke-static {v4, v0}, Lcom/FrameWork/GameScreen;->setSaveGameInt(II)V
const/16 v0, 0x8
sget v1, Lcom/FrameWork/Screen_Main;->activate:I
invoke-static {v0, v1}, Lcom/FrameWork/GameScreen;->setSaveGameInt(II)V
invoke-static {v6}, Lcom/FrameWork/GameScreen;->saveSave(I)V
goto/16 :goto_0
:goto_1 【#注释:goto_1跳向了这里。成功】
:pswitch_5
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "游戏激活成功! "
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_0
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_WIDTH:I
add-int/2addr v0, v1
sub-int/2addr v0, v3
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_0
sget v0, Lcom/FrameWork/Screen_Main;->curStageNumber:I
add-int/lit8 v0, v0, 0x1
invoke-direct {p0, v0}, Lcom/FrameWork/Screen_Main;->changeToSelectStage(I)V
const/16 v0, 0x8
sget v1, Lcom/FrameWork/Screen_Main;->activate:I
invoke-static {v0, v1}, Lcom/FrameWork/GameScreen;->setSaveGameInt(II)V
invoke-static {v6}, Lcom/FrameWork/GameScreen;->saveSave(I)V
goto/16 :goto_0
:pswitch_6
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
const-string v1, "ACTIVATE_ERROR"
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "erroCode==="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
sget v2, Lcom/FrameWork/Screen_Main;->erroCode:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
sget v0, Lcom/FrameWork/Screen_Main;->erroCode:I
packed-switch v0, :pswitch_data_2
:goto_2
invoke-static {v5}, Lcom/FrameWork/GameScreen;->isInputDown(I)Z
move-result v0
if-eqz v0, :cond_0
sget v0, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_X:I
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_WIDTH:I
add-int/2addr v0, v1
sub-int/2addr v0, v3
sget v1, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_OFFSET_Y:I
sget v2, Lcom/FrameWork/Screen_Main;->LOGIC_SCREEN_HEIGHT:I
add-int/2addr v1, v2
sub-int/2addr v1, v3
invoke-static {v0, v1, v3, v3}, Lcom/FrameWork/GameScreen;->touchLogic(IIII)Z
move-result v0
if-eqz v0, :cond_0
invoke-static {v7}, Lcom/FrameWork/GameScreen;->changeSubScreen(I)V
sput v4, Lcom/FrameWork/Screen_Main;->activate:I
const/4 v0, -0x1
invoke-static {v4, v0}, Lcom/FrameWork/GameScreen;->setSaveGameInt(II)V
const/16 v0, 0x8
sget v1, Lcom/FrameWork/Screen_Main;->activate:I
invoke-static {v0, v1}, Lcom/FrameWork/GameScreen;->setSaveGameInt(II)V
invoke-static {v6}, Lcom/FrameWork/GameScreen;->saveSave(I)V
goto/16 :goto_0
:pswitch_7
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "发送短信失败后未使用联网计费。"
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto :goto_2
:pswitch_8
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "联网失败,请查看网络设置。"
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto :goto_2
:pswitch_9
iget-object v0, p0, Lcom/FrameWork/Screen_Main;->activateBox:LhlLib/HLTextBox;
const-string v1, "Android手机未使用CMWAP计费"
invoke-virtual {v0, v1}, LhlLib/HLTextBox;->setText(Ljava/lang/String;)V
goto :goto_2
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_3
:pswitch_5
:pswitch_4
:pswitch_6
.end packed-switch
:pswitch_data_1
.packed-switch 0x0
:pswitch_1
:pswitch_2
.end packed-switch
:pswitch_data_2
.packed-switch 0x6
:pswitch_7
:pswitch_8
:pswitch_9
.end packed-switch
.end method