Remove the bRomWriteable=FALSE, because saving in the port 2 with HP49/50 actually works in custom folder.
This commit is contained in:
parent
df463a872f
commit
4b12c7a697
2 changed files with 17 additions and 11 deletions
|
@ -292,7 +292,7 @@ JNIEXPORT void JNICALL Java_org_emulator_forty_eight_NativeLib_start(JNIEnv *env
|
|||
// read emulator settings
|
||||
GetCurrentDirectory(ARRAYSIZEOF(szCurrentDirectory),szCurrentDirectory);
|
||||
//ReadSettings();
|
||||
bRomWriteable = FALSE;
|
||||
//bRomWriteable = FALSE;
|
||||
|
||||
_tcscpy(szCurrentDirectory, "");
|
||||
_tcscpy(szEmuDirectory, "assets/calculators/");
|
||||
|
|
|
@ -610,19 +610,25 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
intent.setType("*/*");
|
||||
int model = NativeLib.getCurrentModel();
|
||||
String extension = "e48"; // HP48SX/GX // model 'S' 'G'
|
||||
String extension = "e48";
|
||||
switch (model) {
|
||||
case '6':
|
||||
case 'A':
|
||||
extension = "e38"; // HP38G
|
||||
case 'S': //HP48SX
|
||||
case 'G': //HP48GX
|
||||
extension = "e48";
|
||||
case '6': //HP38G 64K RAM
|
||||
case 'A': //HP38G 32K RAM
|
||||
extension = "e38";
|
||||
break;
|
||||
case 'E':
|
||||
extension = "e39"; // HP39/40G
|
||||
case 'E': // HP39G/(HP39G+/HP39GS)/HP40G/HP40GS
|
||||
extension = "e39";
|
||||
break;
|
||||
case '2':
|
||||
case 'Q':
|
||||
case 'X':
|
||||
extension = "e49"; // HP49G
|
||||
case 'P': // HP39G+/HP39GS
|
||||
extension = "e39";
|
||||
break;
|
||||
case '2': // HP48GII
|
||||
case 'Q': // HP49G+/HP50G
|
||||
case 'X': // HP49G
|
||||
extension = "e49";
|
||||
break;
|
||||
}
|
||||
intent.putExtra(Intent.EXTRA_TITLE, "emu48-state." + extension);
|
||||
|
|
Loading…
Reference in a new issue