Add Iomega Zip drive emulation.

This commit is contained in:
SarahW 2018-01-21 16:05:39 +00:00
commit 5fd2fd40aa
22 changed files with 2954 additions and 1809 deletions

View file

@ -29,6 +29,7 @@
#include "nvr.h"
#include "plat-joystick.h"
#include "plat-midi.h"
#include "scsi_zip.h"
#include "sound.h"
#include "thread.h"
#include "disc.h"
@ -855,6 +856,21 @@ int wx_handle_command(void* hwnd, int wParam, int checked)
wx_checkmenuitem(hmenu, wParam, bpb_disable);
saveconfig(NULL);
}
else if (ID_IS("IDM_DISC_ZIP"))
{
char zip_fn[256] = "";
if (!getfile(hwnd,
"Disc image (*.img)|*.img|All files (*.*)|*.*",
zip_fn))
{
zip_load(openfilestring);
}
}
else if (ID_IS("IDM_EJECT_ZIP"))
{
zip_eject();
}
else if (ID_IS("IDM_MACHINE_TOGGLE"))
{
if (emulation_state != EMULATION_STOPPED)