Removed 1541fs - no host file system directly supported

This commit is contained in:
Dave Bernazzani 2025-04-29 06:47:40 -04:00
parent 617a5c25fc
commit 6f27ba9773

View File

@ -59,15 +59,12 @@
*/ */
#include "sysdeps.h" #include "sysdeps.h"
#include "IEC.h" #include "IEC.h"
#include "1541fs.h"
#include "1541d64.h" #include "1541d64.h"
#include "Prefs.h" #include "Prefs.h"
#include "Display.h" #include "Display.h"
#include "main.h" #include "main.h"
// IEC command codes // IEC command codes
enum { enum {
CMD_DATA = 0x60, // Data transfer CMD_DATA = 0x60, // Data transfer
@ -90,31 +87,17 @@ enum {
Drive *IEC::create_drive(const char *path) Drive *IEC::create_drive(const char *path)
{ {
//printdbg("h1"); if (!IsDirectory(path))
if (IsDirectory(path)) { {
// Mount host directory
//printdbg((char*)path);
//printdbg("h2");
return new FSDrive(this, path);
} else {
// Not a directory, check for mountable file type // Not a directory, check for mountable file type
//printdbg("h3");
int type; int type;
if (IsMountableFile(path, type)) { if (IsMountableFile(path, type))
//printdbg("h4"); {
if (type == FILE_IMAGE) { if (type == FILE_IMAGE)
//printdbg("h5"); {
// Mount disk image // Mount disk image
return new ImageDrive(this, path); return new ImageDrive(this, path);
} else {
// Mount archive type file
//printdbg("h6");
//return new ArchDrive(this, path);
} }
} else {
//printdbg("h7");
// Unknown file type
// print error?
} }
} }
return NULL; return NULL;