- 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
129 lines
3.6 KiB
Smali
129 lines
3.6 KiB
Smali
.class public Lcom/unity3d/ads/gl/EglSurfaceBase;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nEglSurfaceBase.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EglSurfaceBase.kt\ncom/unity3d/ads/gl/EglSurfaceBase\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,42:1\n1#2:43\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
.field private mEglCore:Lcom/unity3d/ads/gl/EglCore;
|
|
|
|
.field private mHeight:I
|
|
|
|
.field private mWidth:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/unity3d/ads/gl/EglCore;)V
|
|
.locals 1
|
|
|
|
const-string v0, "eglCore"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 8
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 10
|
|
sget-object v0, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface;
|
|
|
|
iput-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mWidth:I
|
|
|
|
iput v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mHeight:I
|
|
|
|
iput-object p1, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEglCore:Lcom/unity3d/ads/gl/EglCore;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final createOffscreenSurface(II)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
.line 22
|
|
sget-object v1, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface;
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEglCore:Lcom/unity3d/ads/gl/EglCore;
|
|
|
|
.line 23
|
|
invoke-virtual {v0, p1, p2}, Lcom/unity3d/ads/gl/EglCore;->createOffscreenSurface(II)Landroid/opengl/EGLSurface;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
iput p1, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mWidth:I
|
|
|
|
iput p2, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mHeight:I
|
|
|
|
return-void
|
|
|
|
.line 22
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "surface already created"
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final makeCurrent()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEglCore:Lcom/unity3d/ads/gl/EglCore;
|
|
|
|
iget-object v1, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
.line 41
|
|
invoke-virtual {v0, v1}, Lcom/unity3d/ads/gl/EglCore;->makeCurrent(Landroid/opengl/EGLSurface;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final releaseEglSurface()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEglCore:Lcom/unity3d/ads/gl/EglCore;
|
|
|
|
iget-object v1, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Lcom/unity3d/ads/gl/EglCore;->releaseSurface(Landroid/opengl/EGLSurface;)Z
|
|
|
|
.line 33
|
|
sget-object v0, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface;
|
|
|
|
iput-object v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mEGLSurface:Landroid/opengl/EGLSurface;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mHeight:I
|
|
|
|
iput v0, p0, Lcom/unity3d/ads/gl/EglSurfaceBase;->mWidth:I
|
|
|
|
return-void
|
|
.end method
|