mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-24 14:29:46 +00:00
Load ROM at the same time that we unpack internal assets.
This commit is contained in:
parent
e09b2a0b8a
commit
c32a835a56
@ -130,7 +130,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
|
|||||||
protected void getRomFile(String romfile) {
|
protected void getRomFile(String romfile) {
|
||||||
final DialogFragment download = new DownloadDialogFragment();
|
final DialogFragment download = new DownloadDialogFragment();
|
||||||
download.show(getFragmentManager(), FRAGMENT_DOWNLOAD);
|
download.show(getFragmentManager(), FRAGMENT_DOWNLOAD);
|
||||||
new DownloadRom().execute(romfile);
|
new DownloadRom().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, romfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
class DownloadRom extends AsyncTask<String, Void, Boolean> {
|
class DownloadRom extends AsyncTask<String, Void, Boolean> {
|
||||||
@ -393,7 +393,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
|
|||||||
findViewById(R.id.key_down).setOnClickListener(mButtonClick);
|
findViewById(R.id.key_down).setOnClickListener(mButtonClick);
|
||||||
|
|
||||||
// Make sure local copy of internal disk images exist.
|
// Make sure local copy of internal disk images exist.
|
||||||
new AssetImages(this, mConfigFile).execute();
|
new AssetImages(this, mConfigFile).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||||
|
|
||||||
final String romfile = mConfigFile.whichRomFile();
|
final String romfile = mConfigFile.whichRomFile();
|
||||||
if (romfile == null) {
|
if (romfile == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user