mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
## Summary * Use single unified cache file for book spine, table of contents, and core metadata (title, author, cover image) * Use new temp item store file in OPF parsing to store items to be rescaned when parsing spine * This avoids us holding these items in memory * Use new toc.bin.tmp and spine.bin.tmp to build out partial toc / spine data as part of parsing content.opf and the NCX file * These files are re-read multiple times to ultimately build book.bin ## Additional Context * Spec for file format included below as an image * This should help with: * #10 * #60 * #99
13 lines
368 B
C++
13 lines
368 B
C++
#pragma once
|
|
#include <FS.h>
|
|
|
|
#include <string>
|
|
|
|
class FsHelpers {
|
|
public:
|
|
static bool openFileForRead(const char* moduleName, const std::string& path, File& file);
|
|
static bool openFileForWrite(const char* moduleName, const std::string& path, File& file);
|
|
static bool removeDir(const char* path);
|
|
static std::string normalisePath(const std::string& path);
|
|
};
|