Can now select to emulate 1.2MB 5.25" disc drive, with double stepping.
This commit is contained in:
parent
9fe79c1827
commit
4e9ee6e927
7 changed files with 56 additions and 9 deletions
7
src/pc.c
7
src/pc.c
|
|
@ -7,6 +7,7 @@
|
|||
#include "ali1429.h"
|
||||
#include "amstrad.h"
|
||||
#include "cdrom-ioctl.h"
|
||||
#include "disc.h"
|
||||
#include "mem.h"
|
||||
#include "x86_ops.h"
|
||||
#include "codegen.h"
|
||||
|
|
@ -563,6 +564,9 @@ void loadconfig(char *fn)
|
|||
p = (char *)config_get_string(NULL, "hdf_fn", "");
|
||||
if (p) strcpy(ide_fn[3], p);
|
||||
else strcpy(ide_fn[3], "");
|
||||
|
||||
drive_type[0] = config_get_int(NULL, "drive_a_type", 0);
|
||||
drive_type[1] = config_get_int(NULL, "drive_b_type", 0);
|
||||
}
|
||||
|
||||
void saveconfig()
|
||||
|
|
@ -611,6 +615,9 @@ void saveconfig()
|
|||
config_set_int(NULL, "hdf_heads", hdc[3].hpc);
|
||||
config_set_int(NULL, "hdf_cylinders", hdc[3].tracks);
|
||||
config_set_string(NULL, "hdf_fn", ide_fn[3]);
|
||||
|
||||
config_set_int(NULL, "drive_a_type", drive_type[0]);
|
||||
config_set_int(NULL, "drive_b_type", drive_type[1]);
|
||||
|
||||
config_save(config_file_default);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue