Inject boot into SCL, remove unused code.

This commit is contained in:
sorgelig
2017-09-02 03:34:30 +08:00
parent 1fa8fc4f14
commit 321f015476
2 changed files with 653 additions and 715 deletions

View File

@@ -4,7 +4,7 @@
#ifdef __cplusplus
enum TDiskImageType { DIT_UNK, DIT_TRD, DIT_SCL, DIT_FDI, DIT_TD0, DIT_UDI, DIT_HOB, DIT_FDD };
enum TDiskImageType { DIT_UNK, DIT_SCL, DIT_FDI, DIT_TD0, DIT_UDI, DIT_HOB, DIT_FDD };
struct VGFIND_TRACK
{
@@ -53,9 +53,7 @@ class TDiskImage
unsigned int FTrackLength[256][256];
unsigned char* FTracksPtr[256][256][2];
unsigned char FFileName[4096];
TDiskImageType FType;
unsigned char Fdefbuf[16384];
unsigned short MakeVGCRC(unsigned char *data, unsigned long length);
public:
@@ -66,8 +64,6 @@ public:
unsigned char MaxTrack;
unsigned char MaxSide;
bool AddBOOT;
TDiskImage();
~TDiskImage();
@@ -81,22 +77,15 @@ public:
void ApplySectorCRC(VGFIND_SECTOR vgfs);
void FlushImage();
void Open(const char *filename, bool ReadOnly);
char* GetDiskFileName() {return (char*)FFileName; }
void readTRD(int hfile, bool readonly);
void writeTRD(int hfile);
void readSCL(int hfile, bool readonly);
void writeSCL(int hfile);
void readFDI(int hfile, bool readonly);
void writeFDI(int hfile);
void readUDI(int hfile, bool readonly);
void writeUDI(int hfile);
void readTD0(int hfile, bool readonly);
void writeTD0(int hfile);
void readFDD(int hfile, bool readonly);
void writeFDD(int hfile);
void readHOB(int hfile);
void formatTRDOS(unsigned int tracks, unsigned int sides);