diff options
Diffstat (limited to 'lib/sisfilerecord.cpp')
-rw-r--r-- | lib/sisfilerecord.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sisfilerecord.cpp b/lib/sisfilerecord.cpp index 24650da..95e75ed 100644 --- a/lib/sisfilerecord.cpp +++ b/lib/sisfilerecord.cpp @@ -32,6 +32,7 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile) if (*base + 28 + 4 * 2 > len) return SIS_TRUNCATED; + m_buf = buf; uint8_t* p = buf + *base; int size = 0; m_flags = read32(p); @@ -124,3 +125,10 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile) return SIS_OK; } +void +SISFileRecord::setMainDrive(char drive) +{ + if (m_buf[m_destPtr] == '!') + m_buf[m_destPtr] = drive; +} + |