summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/diimage.h')
-rw-r--r--src/emu/diimage.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/src/emu/diimage.h b/src/emu/diimage.h
index 6a5e7f50b42..fdd9b87c27a 100644
--- a/src/emu/diimage.h
+++ b/src/emu/diimage.h
@@ -52,37 +52,37 @@
enum iodevice_t
{
- /* List of all supported devices. Refer to the device by these names only */
- IO_UNKNOWN,
- IO_CARTSLOT, /* 1 - Cartridge Port, as found on most console and on some computers */
- IO_FLOPPY, /* 2 - Floppy Disk unit */
- IO_HARDDISK, /* 3 - Hard Disk unit */
- IO_CYLINDER, /* 4 - Magnetically-Coated Cylinder */
- IO_CASSETTE, /* 5 - Cassette Recorder (common on early home computers) */
- IO_PUNCHCARD, /* 6 - Card Puncher/Reader */
- IO_PUNCHTAPE, /* 7 - Tape Puncher/Reader (reels instead of punchcards) */
- IO_PRINTER, /* 8 - Printer device */
- IO_SERIAL, /* 9 - Generic Serial Port */
- IO_PARALLEL, /* 10 - Generic Parallel Port */
- IO_SNAPSHOT, /* 11 - Complete 'snapshot' of the state of the computer */
- IO_QUICKLOAD, /* 12 - Allow to load program/data into memory, without matching any actual device */
- IO_MEMCARD, /* 13 - Memory card */
- IO_CDROM, /* 14 - optical CD-ROM disc */
+ /* List of all supported devices. Refer to the device by these names only */
+ IO_UNKNOWN,
+ IO_CARTSLOT, /* 1 - Cartridge Port, as found on most console and on some computers */
+ IO_FLOPPY, /* 2 - Floppy Disk unit */
+ IO_HARDDISK, /* 3 - Hard Disk unit */
+ IO_CYLINDER, /* 4 - Magnetically-Coated Cylinder */
+ IO_CASSETTE, /* 5 - Cassette Recorder (common on early home computers) */
+ IO_PUNCHCARD, /* 6 - Card Puncher/Reader */
+ IO_PUNCHTAPE, /* 7 - Tape Puncher/Reader (reels instead of punchcards) */
+ IO_PRINTER, /* 8 - Printer device */
+ IO_SERIAL, /* 9 - Generic Serial Port */
+ IO_PARALLEL, /* 10 - Generic Parallel Port */
+ IO_SNAPSHOT, /* 11 - Complete 'snapshot' of the state of the computer */
+ IO_QUICKLOAD, /* 12 - Allow to load program/data into memory, without matching any actual device */
+ IO_MEMCARD, /* 13 - Memory card */
+ IO_CDROM, /* 14 - optical CD-ROM disc */
IO_MAGTAPE, /* 15 - Magentic tape */
- IO_ROM, /* 16 - Individual ROM image - the Amstrad CPC has a few applications that were sold on 16kB ROMs */
- IO_COUNT /* 17 - Total Number of IO_devices for searching */
+ IO_ROM, /* 16 - Individual ROM image - the Amstrad CPC has a few applications that were sold on 16kB ROMs */
+ IO_COUNT /* 17 - Total Number of IO_devices for searching */
};
enum image_error_t
{
- IMAGE_ERROR_SUCCESS,
- IMAGE_ERROR_INTERNAL,
- IMAGE_ERROR_UNSUPPORTED,
- IMAGE_ERROR_OUTOFMEMORY,
- IMAGE_ERROR_FILENOTFOUND,
- IMAGE_ERROR_INVALIDIMAGE,
- IMAGE_ERROR_ALREADYOPEN,
- IMAGE_ERROR_UNSPECIFIED
+ IMAGE_ERROR_SUCCESS,
+ IMAGE_ERROR_INTERNAL,
+ IMAGE_ERROR_UNSUPPORTED,
+ IMAGE_ERROR_OUTOFMEMORY,
+ IMAGE_ERROR_FILENOTFOUND,
+ IMAGE_ERROR_INVALIDIMAGE,
+ IMAGE_ERROR_ALREADYOPEN,
+ IMAGE_ERROR_UNSPECIFIED
};
struct image_device_type_info
@@ -94,12 +94,12 @@ struct image_device_type_info
struct image_device_format
{
- image_device_format *m_next;
- int m_index;
- astring m_name;
- astring m_description;
- astring m_extensions;
- astring m_optspec;
+ image_device_format *m_next;
+ int m_index;
+ astring m_name;
+ astring m_description;
+ astring m_extensions;
+ astring m_optspec;
};
class device_image_interface;
@@ -117,10 +117,10 @@ typedef void (*device_image_display_info_func)(device_image_interface &image);
// MACROS
//**************************************************************************
-#define IMAGE_INIT_PASS FALSE
-#define IMAGE_INIT_FAIL TRUE
-#define IMAGE_VERIFY_PASS FALSE
-#define IMAGE_VERIFY_FAIL TRUE
+#define IMAGE_INIT_PASS FALSE
+#define IMAGE_INIT_FAIL TRUE
+#define IMAGE_VERIFY_PASS FALSE
+#define IMAGE_VERIFY_FAIL TRUE
#define DEVICE_IMAGE_LOAD_NAME(name) device_load_##name
#define DEVICE_IMAGE_LOAD(name) int DEVICE_IMAGE_LOAD_NAME(name)(device_image_interface &image)
@@ -261,11 +261,11 @@ protected:
static const image_device_type_info *find_device_type(iodevice_t type);
static const image_device_type_info m_device_info_array[];
- /* error related info */
- image_error_t m_err;
- astring m_err_message;
+ /* error related info */
+ image_error_t m_err;
+ astring m_err_message;
- /* variables that are only non-zero when an image is mounted */
+ /* variables that are only non-zero when an image is mounted */
core_file *m_file;
emu_file *m_mame_file;
astring m_image_name;
@@ -282,29 +282,29 @@ protected:
software_part *m_software_part_ptr;
char *m_software_list_name;
- /* info read from the hash file/software list */
+ /* info read from the hash file/software list */
astring m_longname;
astring m_manufacturer;
astring m_year;
UINT32 m_supported;
- /* flags */
- bool m_readonly;
- bool m_created;
+ /* flags */
+ bool m_readonly;
+ bool m_created;
bool m_init_phase;
bool m_from_swlist;
- /* special - used when creating */
- int m_create_format;
- option_resolution *m_create_args;
+ /* special - used when creating */
+ int m_create_format;
+ option_resolution *m_create_args;
hash_collection m_hash;
astring m_brief_instance_name;
astring m_instance_name;
- /* creation info */
- image_device_format *m_formatlist;
+ /* creation info */
+ image_device_format *m_formatlist;
bool m_is_loading;
};
@@ -343,4 +343,4 @@ protected:
virtual void hook_load(astring filename, bool softlist);
};
-#endif /* __DIIMAGE_H__ */
+#endif /* __DIIMAGE_H__ */