mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-08 14:56:12 -04:00
Show message box if System.loadLibrary fails, drop minSdk version to 8 so I don't have to remember to keep readding that in
This commit is contained in:
parent
1869964be4
commit
0725c5122c
@ -8,7 +8,7 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
|
||||
<uses-sdk android:minSdkVersion="13" android:targetSdkVersion="26"/>
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="26"/>
|
||||
|
||||
<application android:icon="@mipmap/ccicon" android:label="ClassiCube">
|
||||
|
||||
|
@ -130,7 +130,15 @@ public class MainActivity extends Activity implements SurfaceHolder.Callback2 {
|
||||
|
||||
void startGameAsync() {
|
||||
Log.i("CC_WIN", "handing off to native..");
|
||||
System.loadLibrary("classicube");
|
||||
try {
|
||||
System.loadLibrary("classicube");
|
||||
} catch (UnsatisfiedLinkError ex) {
|
||||
ex.printStackTrace();
|
||||
showAlert("Failed to start", "Cannot load libclassicube.so: " + ex.getMessage());
|
||||
return;
|
||||
}
|
||||
|
||||
gameRunning = true;
|
||||
runGameAsync();
|
||||
}
|
||||
|
||||
@ -157,7 +165,6 @@ public class MainActivity extends Activity implements SurfaceHolder.Callback2 {
|
||||
}
|
||||
|
||||
if (!gameRunning) startGameAsync();
|
||||
gameRunning = true;
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user