Удаление лишних комментариев /* loaded from: classes.dex */
This commit is contained in:
@@ -5,7 +5,7 @@ import android.hardware.SensorEvent;
|
||||
import android.hardware.SensorEventListener;
|
||||
import android.hardware.SensorManager;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class Accelerometer implements SensorEventListener {
|
||||
private int bufferReadIndex;
|
||||
private int bufferSize;
|
||||
|
||||
@@ -5,8 +5,11 @@ import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Typeface;
|
||||
import android.util.Log;
|
||||
|
||||
import nfs.mod.mpcore.MultiplayerCore;
|
||||
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class BitmapGraphics {
|
||||
private Bitmap bitmap;
|
||||
private Canvas canvas = new Canvas();
|
||||
@@ -55,7 +58,7 @@ public class BitmapGraphics {
|
||||
return Typeface.createFromFile(str);
|
||||
}
|
||||
|
||||
public void drawString(Paint paint, String str, int i, int i2) {
|
||||
this.canvas.drawText(str, i, i2, paint);
|
||||
public void drawString(Paint paint, String str, int x, int y) {
|
||||
this.canvas.drawText(str, x, y, paint);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.ea.ironmonkey;
|
||||
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public interface DrawFrameListener {
|
||||
void onDrawFrame(GL10 gl10);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ import org.fmod.FMODAudioDevice;
|
||||
|
||||
import nfs.mod.mpcore.MultiplayerCore;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class GameActivityMain extends AppCompatActivity implements DrawFrameListener {
|
||||
private static final String DOWNLOAD_PROPERTIES = "downloadcontent/config.properties";
|
||||
public static final int LIFECYCLE_CREATED = 1;
|
||||
@@ -193,7 +193,6 @@ public class GameActivityMain extends AppCompatActivity implements DrawFrameList
|
||||
|
||||
@Override // android.app.Activity
|
||||
public void onCreate(Bundle bundle) {
|
||||
restoreSave();
|
||||
Log.setEnable(true);
|
||||
Log.i(TAG, "onCreate");
|
||||
super.onCreate(bundle);
|
||||
@@ -209,15 +208,7 @@ public class GameActivityMain extends AppCompatActivity implements DrawFrameList
|
||||
}
|
||||
this.handler = new Handler();
|
||||
setLifecycle(1);
|
||||
Log.d("Model", Build.MODEL);
|
||||
if (Build.MODEL.length() > 4 && Build.MODEL.substring(0, 4).equals("R800")) {
|
||||
this.isXperiaPlay = true;
|
||||
}
|
||||
String packageName = getPackageName();
|
||||
if (packageName.endsWith("_azn_na") || packageName.endsWith("_azn_row")) {
|
||||
Log.d(TAG, "It's Amazon dev");
|
||||
isAmazonDev = true;
|
||||
}
|
||||
|
||||
if (!isAtLeastAPI(18) && getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
||||
}
|
||||
@@ -227,8 +218,8 @@ public class GameActivityMain extends AppCompatActivity implements DrawFrameList
|
||||
}
|
||||
getWindow().setFlags(1024, 1024);
|
||||
requestWindowFeature(1);
|
||||
this.mOrientationListener = new OrientationEventListener(getApplicationContext()) { // from class: com.ea.ironmonkey.GameActivityMain.1
|
||||
@Override // android.view.OrientationEventListener
|
||||
this.mOrientationListener = new OrientationEventListener(getApplicationContext()) {
|
||||
@Override
|
||||
public void onOrientationChanged(int i) {
|
||||
int rotation;
|
||||
if (GameActivityMain.this.accelerometer == null || GameActivityMain.this.mRotation == (rotation = GameActivityMain.this.getWindow().getWindowManager().getDefaultDisplay().getRotation())) {
|
||||
@@ -251,21 +242,7 @@ public class GameActivityMain extends AppCompatActivity implements DrawFrameList
|
||||
sIsOtherMusicPlaying = mAudioManager.isMusicActive();
|
||||
Log.i(TAG, "onCreate() isMusicActive = " + Boolean.toString(sIsOtherMusicPlaying));
|
||||
this.mFMODAudioDevice = new FMODAudioDevice();
|
||||
if (isAmazonDev) {
|
||||
try {
|
||||
Log.d(TAG, "onCreate open resources.json");
|
||||
InputStream open = getAssetManager().open("resources.json");
|
||||
this.mResources = new Gson().fromJson(new InputStreamReader(open), new TypeToken<Map<String, Map<String, FSNode>>>() { // from class: com.ea.ironmonkey.GameActivityMain.2
|
||||
}.getType());
|
||||
Log.d(TAG, "onCreate resources.json contains " + Integer.toString(this.mResources.size()) + " items");
|
||||
open.close();
|
||||
this.mAssetLocationType = AssetLocationType.ASSETS;
|
||||
} catch (Exception e) {
|
||||
Log.d(TAG, "onCreate exception on opening resources.json");
|
||||
Log.e(TAG, e.getMessage());
|
||||
this.mResources = new HashMap();
|
||||
}
|
||||
}
|
||||
|
||||
if (this.mAssetLocationType != AssetLocationType.ASSETS) {
|
||||
try {
|
||||
InputStream open2 = getResources().getAssets().open("obb.size");
|
||||
|
||||
@@ -8,7 +8,7 @@ import javax.microedition.khronos.egl.EGLConfig;
|
||||
import javax.microedition.khronos.egl.EGLContext;
|
||||
import javax.microedition.khronos.egl.EGLDisplay;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class GameGLSurfaceView extends GLSurfaceView {
|
||||
private static final String TAG = "GameGLSurfaceView";
|
||||
private boolean enableHistoricalEvents;
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.opengl.GLSurfaceView;
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class GameRenderer implements GLSurfaceView.Renderer {
|
||||
static GL10 _gl;
|
||||
private int _height;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.ea.ironmonkey;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class Log {
|
||||
private static boolean enable;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.bda.controller.KeyEvent;
|
||||
import com.bda.controller.MotionEvent;
|
||||
import com.bda.controller.StateEvent;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class MogaController implements ControllerListener {
|
||||
native void nativeOnKeyEvent(KeyEvent keyEvent);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.ea.ironmonkey;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
class ObbHelper {
|
||||
ObbHelper() {
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@@ -68,8 +69,8 @@ public class PermissionsActivity extends AppCompatActivity {
|
||||
permissions.add(Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
// Android 13+ - новые раздельные разрешения для медиа
|
||||
permissions.add(Manifest.permission.READ_MEDIA_IMAGES);
|
||||
permissions.add(Manifest.permission.READ_MEDIA_VIDEO);
|
||||
//permissions.add(Manifest.permission.READ_MEDIA_IMAGES);
|
||||
//permissions.add(Manifest.permission.READ_MEDIA_VIDEO);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
// Android 14+ - дополнительно для аудио
|
||||
permissions.add(Manifest.permission.READ_MEDIA_AUDIO);
|
||||
@@ -79,6 +80,10 @@ public class PermissionsActivity extends AppCompatActivity {
|
||||
permissions.add(Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||
}
|
||||
|
||||
permissions.forEach(e -> {
|
||||
Log.i("Permissions", e);
|
||||
});
|
||||
|
||||
return permissions.toArray(new String[0]);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.ea.ironmonkey;
|
||||
|
||||
import android.opengl.GLSurfaceView;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class RunLoop {
|
||||
public static final int STATE_RUNNING = 1;
|
||||
public static final int STATE_STOPPED = 0;
|
||||
|
||||
@@ -14,7 +14,7 @@ import java.nio.ByteOrder;
|
||||
import java.nio.FloatBuffer;
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
|
||||
public class SplashScreen {
|
||||
private static final String TAG = "SplashScreen";
|
||||
private Activity _activity;
|
||||
|
||||
Reference in New Issue
Block a user