mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 23:47:43 +00:00
driver frontend in place
This commit is contained in:
@@ -18,8 +18,7 @@ class CLooseDatabase final : public IDatabase
|
||||
Access m_access;
|
||||
public:
|
||||
CLooseDatabase(const std::string& path, Access access)
|
||||
: m_mainSql((path+"/main.db").c_str(), (m_access == READONLY) ? true : false),
|
||||
m_cookedSql((path+"/cooked.db").c_str(), (m_access == READONLY) ? true : false),
|
||||
: m_sql(path.c_str(), (access == READONLY) ? true : false),
|
||||
m_access(access)
|
||||
{
|
||||
|
||||
@@ -51,12 +50,12 @@ public:
|
||||
const IDataObject* addDataBlob(const std::string& name, const void* data, size_t length)
|
||||
{
|
||||
/* Hash data */
|
||||
ObjectHash hash(data, length);
|
||||
HECL::ObjectHash hash(data, length);
|
||||
|
||||
/* Compress data into file */
|
||||
FILE* fp = fopen("", "wb");
|
||||
|
||||
m_mainSql.insertObject(name, "DUMB", hash, length, length);
|
||||
m_sql.insertObject(name, "DUMB", hash, length, length);
|
||||
}
|
||||
|
||||
const IDataObject* addDataBlob(const void* data, size_t length)
|
||||
|
||||
@@ -132,7 +132,9 @@ public:
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool insertObject(const std::string& name, const FourCC& type, const ObjectHash& hash,
|
||||
bool insertObject(const std::string& name,
|
||||
const HECL::FourCC& type,
|
||||
const HECL::ObjectHash& hash,
|
||||
size_t compLen, size_t decompLen)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user