/[cebix]/Frodo4/Src/1541t64.h
ViewVC logotype

Diff of /Frodo4/Src/1541t64.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by cebix, Tue Jul 1 17:51:17 2003 UTC revision 1.3 by cebix, Sun Jan 11 00:09:51 2004 UTC
# Line 26  Line 26 
26    
27  // Information for file inside a .t64 file  // Information for file inside a .t64 file
28  typedef struct {  typedef struct {
29          char name[17];          // File name, PETSCII          uint8 name[17];         // File name, PETSCII
30          uint8 type;                     // File type          uint8 type;                     // File type
31          uint8 sa_lo, sa_hi;     // Start address          uint8 sa_lo, sa_hi;     // Start address
32          int offset;                     // Offset of first byte in .t64 file          int offset;                     // Offset of first byte in .t64 file
# Line 38  class T64Drive : public Drive { Line 38  class T64Drive : public Drive {
38  public:  public:
39          T64Drive(IEC *iec, char *filepath);          T64Drive(IEC *iec, char *filepath);
40          virtual ~T64Drive();          virtual ~T64Drive();
41          virtual uint8 Open(int channel, char *filename);          virtual uint8 Open(int channel, const uint8 *name, int name_len);
42          virtual uint8 Close(int channel);          virtual uint8 Close(int channel);
43          virtual uint8 Read(int channel, uint8 *byte);          virtual uint8 Read(int channel, uint8 *byte);
44          virtual uint8 Write(int channel, uint8 byte, bool eoi);          virtual uint8 Write(int channel, uint8 byte, bool eoi);
# Line 48  private: Line 48  private:
48          void open_close_t64_file(char *t64name);          void open_close_t64_file(char *t64name);
49          bool parse_t64_file(void);          bool parse_t64_file(void);
50          bool parse_lynx_file(void);          bool parse_lynx_file(void);
51          uint8 open_file(int channel, char *filename);  
52          uint8 open_directory(int channel, char *filename);          uint8 open_file(int channel, const uint8 *name, int name_len);
53          void convert_filename(char *srcname, char *destname, int *filemode, int *filetype);          uint8 open_directory(int channel, const uint8 *pattern, int pattern_len);
54          bool find_first_file(char *name, int type, int *num);          bool find_first_file(const uint8 *pattern, int pattern_len, int &num);
55          void close_all_channels(void);          void close_all_channels(void);
56          void execute_command(char *command);  
57          void cht64_cmd(char *t64path);          virtual void rename_cmd(const uint8 *new_file, int new_file_len, const uint8 *old_file, int old_file_len);
58          uint8 conv_from_64(uint8 c, bool map_slash);          virtual void initialize_cmd(void);
59            virtual void validate_cmd(void);
60    
61          FILE *the_file;                 // File pointer for .t64 file          FILE *the_file;                 // File pointer for .t64 file
62          bool is_lynx;                   // Flag: .t64 file is really a LYNX archive          bool is_lynx;                   // Flag: .t64 file is really a LYNX archive
# Line 67  private: Line 68  private:
68          int num_files;                  // Number of files in .t64 file and in file_info array          int num_files;                  // Number of files in .t64 file and in file_info array
69          FileInfo *file_info;    // Pointer to array of file information structs for each file          FileInfo *file_info;    // Pointer to array of file information structs for each file
70    
         char cmd_buffer[44];    // Buffer for incoming command strings  
         int cmd_len;                    // Length of received command  
   
71          uint8 read_char[16];    // Buffers for one-byte read-ahead          uint8 read_char[16];    // Buffers for one-byte read-ahead
72  };  };
73    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Christian Bauer">Christian Bauer
ViewVC Help
Powered by ViewVC 1.1.17