- NEW: ServerSelectionActivity as main launcher - Beautiful startup menu (Offline/Online modes) - URL input dialog with custom port support - Quick select presets (Official/Local/Custom) - 'Remember my choice' persistence - Help dialog for first-time users - NEW: ServerManager for Nimble SDK URL overrides - Automatically configures all EA endpoints - Supports custom ports (:8443, :3000, etc.) - Comprehensive error handling and logging - Modified MainActivity to read Intent extras - Reads mode (online/offline) from ServerSelectionActivity - Configures custom server before game init - Maintains backward compatibility - Modified AndroidManifest.xml - ServerSelectionActivity is now LAUNCHER - UnpackAssetsActivity no longer exports MAIN intent - Intent extras preserved through activity chain - Added XML layouts - activity_server_selection.xml (main menu UI) - dialog_server_input.xml (URL input dialog) - Server URL format: https://domain.com:port - SharedPreferences: rr3_server_config.xml Ready for Phase 2: Community server backend implementation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
50 lines
1.4 KiB
Smali
50 lines
1.4 KiB
Smali
.class Lcom/firemint/realracing/ServerSelectionActivity$3;
|
|
.super Ljava/lang/Object;
|
|
.source "ServerSelectionActivity.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/firemint/realracing/ServerSelectionActivity;->onCreate(Landroid/os/Bundle;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/firemint/realracing/ServerSelectionActivity;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/firemint/realracing/ServerSelectionActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/firemint/realracing/ServerSelectionActivity$3;->this$0:Lcom/firemint/realracing/ServerSelectionActivity;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/ServerSelectionActivity$3;->this$0:Lcom/firemint/realracing/ServerSelectionActivity;
|
|
|
|
const-string v0, "offline"
|
|
|
|
const-string v1, ""
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/firemint/realracing/ServerSelectionActivity;->access$000(Lcom/firemint/realracing/ServerSelectionActivity;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|