/[projet1]/public/pc/tools/osdk/main/FloppyBuilder/Floppy.h
Defence Force logotype

Diff of /public/pc/tools/osdk/main/FloppyBuilder/Floppy.h

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

revision 1360 by dbug, Sat Oct 24 20:40:51 2015 UTC revision 1361 by dbug, Mon Jan 25 18:22:13 2016 UTC
# Line 54  public: Line 54  public:
54    FileEntry();    FileEntry();
55    ~FileEntry();    ~FileEntry();
56    
57      int GetSector() const
58      {
59        if (m_CompressionMode==e_CompressionFilepack)
60        {
61          return m_StartSector+128;
62        }
63        else
64        {
65          return m_StartSector;
66        }
67      }
68    
69  public:  public:
70    int             m_FloppyNumber;     // 0 for a single floppy program    int             m_FloppyNumber;     // 0 for a single floppy program
71    int             m_StartSide;        // 0 or 1    int             m_StartSide;        // 0 or 1
# Line 63  public: Line 75  public:
75    int             m_FinalFileSize;    int             m_FinalFileSize;
76    int             m_StoredFileSize;    int             m_StoredFileSize;
77    CompressionMode m_CompressionMode;    CompressionMode m_CompressionMode;
   int             m_LoadAddress;  
78    std::string     m_FilePath;    std::string     m_FilePath;
79    std::map<std::string,std::string> m_Metadata;    std::map<std::string,std::string> m_Metadata;
80  };  };
# Line 83  public: Line 94  public:
94    bool SaveDescription(const char* fileName) const;    bool SaveDescription(const char* fileName) const;
95    
96    bool WriteSector(const char *fileName);    bool WriteSector(const char *fileName);
97    bool WriteFile(const char *fileName,int loadAddress,bool removeHeaderIfPresent,const std::map<std::string,std::string>& metadata);    bool WriteLoader(const char *fileName,int loadAddress);
98      bool WriteFile(const char *fileName,bool removeHeaderIfPresent,const std::map<std::string,std::string>& metadata);
99    bool WriteTapeFile(const char *fileName);    bool WriteTapeFile(const char *fileName);
100    
101    bool ReserveSectors(int sectorCount,int fillValue,const std::map<std::string,std::string>& metadata);    bool ReserveSectors(int sectorCount,int fillValue,const std::map<std::string,std::string>& metadata);
# Line 91  public: Line 103  public:
103    bool ExtractFile(const char *fileName,int trackNumber,int sectorNumber,int sectorCount);    bool ExtractFile(const char *fileName,int trackNumber,int sectorNumber,int sectorCount);
104    
105    bool AddDefine(std::string defineName,std::string defineValue);    bool AddDefine(std::string defineName,std::string defineValue);
106      bool AddDefine(std::string defineName,int defineValue);
107    
108    void SetCompressionMode(CompressionMode compressionMode)    void SetCompressionMode(CompressionMode compressionMode)
109    {    {
# Line 145  private: Line 158  private:
158    int         m_OffsetFirstSector;    // 156 (Location of the first byte of data of the first sector)    int         m_OffsetFirstSector;    // 156 (Location of the first byte of data of the first sector)
159    int         m_InterSectorSpacing;   // 358 (Number of bytes to skip to go to the next sector: 256+59+43)    int         m_InterSectorSpacing;   // 358 (Number of bytes to skip to go to the next sector: 256+59+43)
160    
161      int         m_LoaderTrackPosition;
162      int         m_LoaderSectorPosition;
163      int         m_LoaderLoadAddress;
164    
165    int         m_CurrentTrack;    int         m_CurrentTrack;
166    int         m_CurrentSector;    int         m_CurrentSector;
167    

Legend:
Removed from v.1360  
changed lines
  Added in v.1361

  ViewVC Help
Powered by ViewVC 1.1.26