diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-03-19 13:34:53 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-03-19 13:34:53 +0000 |
commit | 89a3d9a86c9f948829ab173b811709f74685bfe6 (patch) | |
tree | beb4e5806d47b4f4c7d4335deecaf205b4e9634a /lib/sisfilerecord.cpp | |
parent | a7f48478e5126a8cd4b729109ab7aacabc615c66 (diff) | |
download | plptools-89a3d9a86c9f948829ab173b811709f74685bfe6.tar.gz plptools-89a3d9a86c9f948829ab173b811709f74685bfe6.tar.bz2 plptools-89a3d9a86c9f948829ab173b811709f74685bfe6.zip |
Remove the previous version (unconditionally) before installing the new
version.
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; +} + |