mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Fix c buttons not having a default binding
This commit is contained in:
@@ -149,6 +149,25 @@ public class MainActivity extends SDLActivity{
|
||||
}
|
||||
}
|
||||
|
||||
File configFile = new File(getExternalFilesDir(null), "2ship2harkinian.json");
|
||||
if (!configFile.exists()) {
|
||||
try {
|
||||
InputStream in = getAssets().open("2ship2harkinian.json");
|
||||
OutputStream out = new FileOutputStream(configFile);
|
||||
|
||||
byte[] buffer = new byte[1024];
|
||||
int read;
|
||||
while ((read = in.read(buffer)) != -1) {
|
||||
out.write(buffer, 0, read);
|
||||
}
|
||||
|
||||
in.close();
|
||||
out.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private native void nativeHandleSelectedFile(String filePath);
|
||||
|
||||
Reference in New Issue
Block a user