v2.9.5.6-3dfx

- Fixed bug when importing rom from Rom store.
- Added not allowing you to use Vectras VM when available storage space is too low.
- Added auto-show keyboard when editing Qemu params.
- Thumbnails in Rom store no longer download automatically, it only downloads when importing valid rom.
This commit is contained in:
An Bui 2025-09-03 23:20:06 +07:00
parent 347d769308
commit 2dfb569cc4
16 changed files with 261 additions and 247 deletions

View file

@ -83,33 +83,6 @@ public class AdapterRomStoreSearch extends RecyclerView.Adapter<RecyclerView.Vie
intent.putExtra("creator", current.creator);
intent.putExtra("size", current.fileSize);
context.startActivity(intent);
if (!current.romPath.endsWith(".cvbi")) {
//Save image to icon folder
myHolder.ivIcon.buildDrawingCache();
Bitmap bm = myHolder.ivIcon.getDrawingCache();
OutputStream fOut = null;
try {
File root = new File(AppConfig.maindirpath + "/icons/");
if(root.mkdirs()) {
File sdImageMainDirectory = new File(root, current.romPath + ".png");
fOut = new FileOutputStream(sdImageMainDirectory);
} else {
Log.e(TAG, "Directory: " + AppConfig.maindirpath + "/icons/");
}
} catch (FileNotFoundException e) {
Log.e(TAG, "File: " + Objects.requireNonNull(e.getMessage()));
}
try {
assert fOut != null;
bm.compress(Bitmap.CompressFormat.PNG, 100, fOut);
fOut.flush();
fOut.close();
} catch (Exception e) {
Log.e(TAG, "Bitmap: " + Objects.requireNonNull(e.getMessage()));
}
}
});
} else {
myHolder.textAvail.setText(context.getString(R.string.unavailable));

View file

@ -83,33 +83,6 @@ public class AdapterRoms extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
intent.putExtra("creator", current.creator);
intent.putExtra("size", current.fileSize);
context.startActivity(intent);
if (!current.romPath.endsWith(".cvbi")) {
//Save image to icon folder
myHolder.ivIcon.buildDrawingCache();
Bitmap bm = myHolder.ivIcon.getDrawingCache();
OutputStream fOut = null;
try {
File root = new File(AppConfig.maindirpath + "/icons/");
if(root.mkdirs()) {
File sdImageMainDirectory = new File(root, current.romPath + ".png");
fOut = new FileOutputStream(sdImageMainDirectory);
} else {
Log.e(TAG, "Directory: " + AppConfig.maindirpath + "/icons/");
}
} catch (FileNotFoundException e) {
Log.e(TAG, "File: " + Objects.requireNonNull(e.getMessage()));
}
try {
assert fOut != null;
bm.compress(Bitmap.CompressFormat.PNG, 100, fOut);
fOut.flush();
fOut.close();
} catch (Exception e) {
Log.e(TAG, "Bitmap: " + Objects.requireNonNull(e.getMessage()));
}
}
});
} else {
myHolder.textAvail.setText(context.getString(R.string.unavailable));