mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 00:26:28 -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.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18" />
|
<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-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">
|
<application android:icon="@mipmap/ccicon" android:label="ClassiCube">
|
||||||
|
|
||||||
|
@ -130,7 +130,15 @@ public class MainActivity extends Activity implements SurfaceHolder.Callback2 {
|
|||||||
|
|
||||||
void startGameAsync() {
|
void startGameAsync() {
|
||||||
Log.i("CC_WIN", "handing off to native..");
|
Log.i("CC_WIN", "handing off to native..");
|
||||||
|
try {
|
||||||
System.loadLibrary("classicube");
|
System.loadLibrary("classicube");
|
||||||
|
} catch (UnsatisfiedLinkError ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
showAlert("Failed to start", "Cannot load libclassicube.so: " + ex.getMessage());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
gameRunning = true;
|
||||||
runGameAsync();
|
runGameAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,7 +165,6 @@ public class MainActivity extends Activity implements SurfaceHolder.Callback2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!gameRunning) startGameAsync();
|
if (!gameRunning) startGameAsync();
|
||||||
gameRunning = true;
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user