summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbheaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x_mmap/src/dbheaders.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbheaders.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbheaders.cpp b/plugins/Db3x_mmap/src/dbheaders.cpp
index 5d19daaf35..97e7b915fe 100644
--- a/plugins/Db3x_mmap/src/dbheaders.cpp
+++ b/plugins/Db3x_mmap/src/dbheaders.cpp
@@ -65,6 +65,11 @@ int CDb3Base::CheckDbHeaders()
if (m_dbHeader.ofsUser == 0)
return EGROKPRF_DAMAGED;
- m_bEncrypted = 0 == memcmp(m_dbHeader.signature, &dbSignatureE, sizeof(m_dbHeader.signature));
return 0;
}
+
+void CDb3Base::WriteSignature(DBSignature &sign)
+{
+ memcpy(&m_dbHeader.signature, &sign, sizeof(DBSignature));
+ DBWrite(0, &sign, sizeof(DBSignature));
+} \ No newline at end of file