blob: b4e60bb795c0d2a52e856528bde94b976c8b41ea [file] [log] [blame] [raw]
#ifndef _DISKFS_H
#define _DISKFS_H
#include <stdio.h>
#include "archdep.h"
#include "device.h"
#define NAMEBUF_LENGTH MAX_PATH
class CIECFSDrive : public CIECDrive {
public:
CIECFSDrive(const char *path);
virtual ~CIECFSDrive();
virtual unsigned char Open(int channel);
virtual unsigned char Close(int channel);
virtual unsigned char Read(int channel, unsigned char *data);
virtual unsigned char Write(int channel, unsigned char data, unsigned int cmd, bool eoi);
virtual void Reset();
private:
virtual unsigned char OpenFile(int channel, char *filename);
virtual unsigned char OpenDirectory(int channel, char *filename);
virtual void ParseFileName(char *srcname, char *destname, int *filemode, int *filetype, bool *wildflag);
virtual void ExecuteCommand(char *command);
void FindFirstFile(char *name);
bool ChangeDir(char *dirpath);
void ChangeDirCmd(char *dirpath);
char dir_path[MAX_PATH];
char orig_dir_path[MAX_PATH];
char dir_title[16];
FILE *file[16];
char cmd_buffer[44];
int cmd_len;
unsigned char read_char[16];
};
#endif // _DISKFS_H