aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sisfilerecord.h
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-19 13:34:53 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-19 13:34:53 +0000
commit89a3d9a86c9f948829ab173b811709f74685bfe6 (patch)
treebeb4e5806d47b4f4c7d4335deecaf205b4e9634a /lib/sisfilerecord.h
parenta7f48478e5126a8cd4b729109ab7aacabc615c66 (diff)
downloadplptools-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.h')
-rw-r--r--lib/sisfilerecord.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/sisfilerecord.h b/lib/sisfilerecord.h
index dbbbc49..d0ccced 100644
--- a/lib/sisfilerecord.h
+++ b/lib/sisfilerecord.h
@@ -48,6 +48,13 @@ public:
*/
SisRC fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile);
+ uint8_t* getDestPtr()
+ {
+ return &m_buf[m_destPtr];
+ }
+
+ void setMainDrive(char drive);
+
/**
* 1 if multiple language versions, otherwise 0.
*/
@@ -86,6 +93,15 @@ public:
uint32_t m_destPtr;
uint32_t* m_fileLengths;
uint32_t* m_filePtrs;
+
+private:
+
+ /**
+ * The buffer we belong to.
+ * Used for updating the destination file name.
+ */
+ uint8_t* m_buf;
+
};
#endif