mirror of
https://github.com/holub/mame
synced 2025-06-26 22:29:10 +03:00
huh? (nw)
This commit is contained in:
parent
74e4975110
commit
d35b80ca06
@ -7,7 +7,7 @@
|
|||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
#include "flex_dsk.h"
|
#include "flex_dsk.h"
|
||||||
|
|
||||||
flex_format::flex_format() : wd177x_format(formats)
|
flex_format::flex_format()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,6 +26,11 @@ const char *flex_format::extensions() const
|
|||||||
return "dsk";
|
return "dsk";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool flex_format::supports_save() const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int flex_format::identify(io_generic *io, UINT32 form_factor)
|
int flex_format::identify(io_generic *io, UINT32 form_factor)
|
||||||
{
|
{
|
||||||
io_generic_read(io, &info, 256 * 2, sizeof(struct sysinfo_sector));
|
io_generic_read(io, &info, 256 * 2, sizeof(struct sysinfo_sector));
|
||||||
@ -97,7 +102,4 @@ bool flex_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty since geometry is determined from the disk image itself
|
|
||||||
const flex_format::format flex_format::formats[] = { {} };
|
|
||||||
|
|
||||||
const floppy_format_type FLOPPY_FLEX_FORMAT = &floppy_image_format_creator<flex_format>;
|
const floppy_format_type FLOPPY_FLEX_FORMAT = &floppy_image_format_creator<flex_format>;
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
#ifndef FLEX_DSK_H_
|
#ifndef FLEX_DSK_H_
|
||||||
#define FLEX_DSK_H_
|
#define FLEX_DSK_H_
|
||||||
|
|
||||||
#include "wd177x_dsk.h"
|
#include "flopimg.h"
|
||||||
|
|
||||||
class flex_format : public wd177x_format {
|
class flex_format : public floppy_image_format_t {
|
||||||
public:
|
public:
|
||||||
flex_format();
|
flex_format();
|
||||||
|
|
||||||
@ -18,6 +18,8 @@ public:
|
|||||||
virtual const char *extensions() const;
|
virtual const char *extensions() const;
|
||||||
virtual int identify(io_generic *io, UINT32 form_factor);
|
virtual int identify(io_generic *io, UINT32 form_factor);
|
||||||
virtual bool load(io_generic *io, UINT32 form_factor, floppy_image *image);
|
virtual bool load(io_generic *io, UINT32 form_factor, floppy_image *image);
|
||||||
|
virtual bool supports_save() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct sysinfo_sector
|
struct sysinfo_sector
|
||||||
{
|
{
|
||||||
@ -37,7 +39,6 @@ private:
|
|||||||
UINT8 last_sec;
|
UINT8 last_sec;
|
||||||
UINT8 unused2[216];
|
UINT8 unused2[216];
|
||||||
} info;
|
} info;
|
||||||
static const format formats[];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const floppy_format_type FLOPPY_FLEX_FORMAT;
|
extern const floppy_format_type FLOPPY_FLEX_FORMAT;
|
||||||
|
Loading…
Reference in New Issue
Block a user