- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
318 lines
7.5 KiB
Smali
318 lines
7.5 KiB
Smali
.class public Lcom/firemint/realracing/GLView;
|
|
.super Landroid/opengl/GLSurfaceView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/firemint/realracing/GLView$ConfigChooser;,
|
|
Lcom/firemint/realracing/GLView$ContextFactory;,
|
|
Lcom/firemint/realracing/GLView$TouchEvent;,
|
|
Lcom/firemint/realracing/GLView$ConfigAttribs;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final EGL_CONTEXT_CLIENT_VERSION:I = 0x3098
|
|
|
|
.field private static final EGL_COVERAGE_BUFFERS_NV:I = 0x30e0
|
|
|
|
.field private static final EGL_COVERAGE_SAMPLES_NV:I = 0x30e1
|
|
|
|
.field private static final EGL_DEPTH_ENCODING_NONLINEAR_NV:I = 0x30e3
|
|
|
|
.field private static final EGL_DEPTH_ENCODING_NV:I = 0x30e2
|
|
|
|
.field private static final EGL_OPENGL_ES2_BIT:I = 0x4
|
|
|
|
|
|
# instance fields
|
|
.field private m_glContext:Ljavax/microedition/khronos/egl/EGLContext;
|
|
|
|
|
|
# direct methods
|
|
.method public static bridge synthetic -$$Nest$fgetm_glContext(Lcom/firemint/realracing/GLView;)Ljavax/microedition/khronos/egl/EGLContext;
|
|
.locals 0
|
|
|
|
.line 0
|
|
iget-object p0, p0, Lcom/firemint/realracing/GLView;->m_glContext:Ljavax/microedition/khronos/egl/EGLContext;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static bridge synthetic -$$Nest$fputm_glContext(Lcom/firemint/realracing/GLView;Ljavax/microedition/khronos/egl/EGLContext;)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
iput-object p1, p0, Lcom/firemint/realracing/GLView;->m_glContext:Ljavax/microedition/khronos/egl/EGLContext;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0xb
|
|
.end annotation
|
|
|
|
.line 38
|
|
invoke-direct {p0, p1}, Landroid/opengl/GLSurfaceView;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/firemint/realracing/GLView;->m_glContext:Ljavax/microedition/khronos/egl/EGLContext;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 39
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setImportantForAccessibility(I)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 55
|
|
invoke-virtual {p0, v0}, Landroid/opengl/GLSurfaceView;->setPreserveEGLContextOnPause(Z)V
|
|
|
|
.line 59
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setFocusable(Z)V
|
|
|
|
.line 60
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setFocusableInTouchMode(Z)V
|
|
|
|
.line 62
|
|
new-instance v0, Lcom/firemint/realracing/GLView$ConfigChooser;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/firemint/realracing/GLView$ConfigChooser;-><init>(Lcom/firemint/realracing/GLView;Lcom/firemint/realracing/GLView$ConfigChooser-IA;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/opengl/GLSurfaceView;->setEGLConfigChooser(Landroid/opengl/GLSurfaceView$EGLConfigChooser;)V
|
|
|
|
.line 63
|
|
new-instance v0, Lcom/firemint/realracing/GLView$ContextFactory;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/firemint/realracing/GLView$ContextFactory;-><init>(Lcom/firemint/realracing/GLView;Lcom/firemint/realracing/GLView$ContextFactory-IA;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/opengl/GLSurfaceView;->setEGLContextFactory(Landroid/opengl/GLSurfaceView$EGLContextFactory;)V
|
|
|
|
.line 65
|
|
new-instance p1, Lcom/firemint/realracing/GLRenderer;
|
|
|
|
invoke-direct {p1}, Lcom/firemint/realracing/GLRenderer;-><init>()V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/opengl/GLSurfaceView;->setRenderer(Landroid/opengl/GLSurfaceView$Renderer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getGLContext()Ljavax/microedition/khronos/egl/EGLContext;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/firemint/realracing/GLView;->m_glContext:Ljavax/microedition/khronos/egl/EGLContext;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 11
|
|
|
|
.line 320
|
|
sget-object v0, Lcom/firemint/realracing/MainActivity;->instance:Lcom/firemint/realracing/MainActivity;
|
|
|
|
invoke-virtual {v0}, Lcom/firemint/realracing/MainActivity;->getPaused()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 323
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const/4 v2, 0x5
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_1
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
move v9, v3
|
|
|
|
.line 333
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v9, v2, :cond_7
|
|
|
|
.line 335
|
|
new-instance v10, Lcom/firemint/realracing/GLView$TouchEvent;
|
|
|
|
invoke-virtual {p1, v9}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1, v9}, Landroid/view/MotionEvent;->getX(I)F
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {p1, v9}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v2, v10
|
|
|
|
move-object v3, p0
|
|
|
|
move v4, v0
|
|
|
|
invoke-direct/range {v2 .. v8}, Lcom/firemint/realracing/GLView$TouchEvent;-><init>(Lcom/firemint/realracing/GLView;IIFFZ)V
|
|
|
|
invoke-virtual {p0, v10}, Landroid/opengl/GLSurfaceView;->queueEvent(Ljava/lang/Runnable;)V
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/4 v2, 0x6
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 p1, 0x3
|
|
|
|
if-ne v0, p1, :cond_7
|
|
|
|
.line 346
|
|
new-instance p1, Lcom/firemint/realracing/GLView$TouchEvent;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p0
|
|
|
|
move v4, v0
|
|
|
|
invoke-direct/range {v2 .. v8}, Lcom/firemint/realracing/GLView$TouchEvent;-><init>(Lcom/firemint/realracing/GLView;IIFFZ)V
|
|
|
|
invoke-virtual {p0, p1}, Landroid/opengl/GLSurfaceView;->queueEvent(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 341
|
|
:cond_4
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v2
|
|
|
|
.line 342
|
|
new-instance v9, Lcom/firemint/realracing/GLView$TouchEvent;
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result p1
|
|
|
|
if-ne p1, v1, :cond_5
|
|
|
|
move v8, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
move v8, v3
|
|
|
|
:goto_2
|
|
move-object v2, v9
|
|
|
|
move-object v3, p0
|
|
|
|
move v4, v0
|
|
|
|
invoke-direct/range {v2 .. v8}, Lcom/firemint/realracing/GLView$TouchEvent;-><init>(Lcom/firemint/realracing/GLView;IIFFZ)V
|
|
|
|
invoke-virtual {p0, v9}, Landroid/opengl/GLSurfaceView;->queueEvent(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 328
|
|
:cond_6
|
|
:goto_3
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
move-result v2
|
|
|
|
.line 329
|
|
new-instance v9, Lcom/firemint/realracing/GLView$TouchEvent;
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
move-result v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v2, v9
|
|
|
|
move-object v3, p0
|
|
|
|
move v4, v0
|
|
|
|
invoke-direct/range {v2 .. v8}, Lcom/firemint/realracing/GLView$TouchEvent;-><init>(Lcom/firemint/realracing/GLView;IIFFZ)V
|
|
|
|
invoke-virtual {p0, v9}, Landroid/opengl/GLSurfaceView;->queueEvent(Ljava/lang/Runnable;)V
|
|
|
|
:cond_7
|
|
:goto_4
|
|
return v1
|
|
.end method
|