From 89a3d9a86c9f948829ab173b811709f74685bfe6 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Tue, 19 Mar 2002 13:34:53 +0000 Subject: Remove the previous version (unconditionally) before installing the new version. --- lib/sisfilerecord.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/sisfilerecord.cpp') 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; +} + -- cgit v1.2.3