09.04.2013 23:29, Julius Schwartzenberg пишет:
Hi,Maybe I missed it, but I haven't been able to find out how to switch floppy images while DOSEMU is running. Since most computers nowadays ship without floppy drives, I guess using floppy images with DOSEMU is more common practice now than it was originally. If this feature doesn't exist yet, would it be doable to add it? Is it already possible to switch floppy images while DOSEMU is running or could I open a feature request?
I think its not implemented. The attached completely untested patch maybe does something like what you need.
diff --git a/src/base/misc/disks.c b/src/base/misc/disks.c index 60812f6..632aa47 100644 --- a/src/base/misc/disks.c +++ b/src/base/misc/disks.c @@ -54,7 +54,7 @@ static int disks_initiated = 0; static void set_part_ent(struct disk *dp, unsigned char *tmp_mbr); -#define USE_FSYNC 1 +#define USE_FSYNC 0 #if 1 # ifdef USE_FSYNC @@ -978,23 +978,23 @@ disk_init(void) for (i = 0; i < FDISKS; i++) { dp = &disktab[i]; dp->floppy = 1; + dp->removeable = 1; dp->drive_num = i; dp->serial = 0xF10031A0 + dp->drive_num; // sernum must be unique! if (stat(dp->dev_name, &stbuf) < 0) { error("can't stat %s\n", dp->dev_name); config.exitearly = 1; } - if (S_ISBLK(stbuf.st_mode)) - d_printf("ISBLK "); - if (S_ISCHR(stbuf.st_mode)) - d_printf("ISCHR "); + if (S_ISREG(stbuf.st_mode)) { + d_printf("dev %s is an image\n", dp->dev_name); + config.fastfloppy = 0; + } d_printf("dev %s: %#x\n", dp->dev_name, (unsigned) stbuf.st_rdev); #ifdef __linux__ if (S_ISBLK(stbuf.st_mode) && (((stbuf.st_rdev & 0xff00)==0x200) || (dp->default_cmos==ATAPI_FLOPPY)) ) { d_printf("DISK %s removable\n", dp->dev_name); - dp->removeable = 1; dp->fdesc = -1; continue; }
------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________ Dosemu-devel mailing list Dosemu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dosemu-devel