30 if (*base + 28 + 4 * 2 > len)
36 uint8_t* p = buf + *base;
40 printf(
_(
"Got flags %d\n"),
m_flags);
70 printf(
_(
"File is %d bytes long (at %d) (to %d)\n"),
74 printf(
_(
"%d .. %d (%d bytes): Single file record type %d, %.*s\n"),
87 if (*base + size + n * 8 > len)
89 for (
int i = 0; i < n; ++i)
96 for (
int i = 0; i < n; ++i)
104 printf(
_(
"File %d (for %s) is %d bytes long (at %d)\n"),
110 printf(
_(
"%d .. %d (%d bytes): File record (%s) for %.*s\n"),
122 printf(
_(
"Unknown file flags %d\n"),
m_flags);
uint8_t * getFilePtr(int fileNo)
Return a pointer to the file data for the file for the specified language.
uint32_t m_flags
1 if multiple language versions, otherwise 0.
uint32_t m_fileDetails
If file type is 1:
SisRC fillFrom(uint8_t *buf, int *base, off_t len, SISFile *sisFile)
Populate the fields.
uint8_t * m_buf
The buffer we belong to.
uint32_t m_fileType
Type of file.
void setMainDrive(char drive)
The top level container of a SIS file.
int getLanguage()
Return the currently selected installation language.
uint32_t read32(uint8_t *p)