refactor: Drop FsFile alias, use HalFile in downstream code (#2141)
This commit is contained in:
+3
-3
@@ -166,7 +166,7 @@ bool Xtc::generateCoverBmp() const {
|
||||
}
|
||||
|
||||
// Create BMP file
|
||||
FsFile coverBmp;
|
||||
HalFile coverBmp;
|
||||
if (!Storage.openFileForWrite("XTC", getCoverBmpPath(), coverBmp)) {
|
||||
LOG_DBG("XTC", "Failed to create cover BMP file");
|
||||
free(pageBuffer);
|
||||
@@ -306,7 +306,7 @@ bool Xtc::generateThumbBmp(int height) const {
|
||||
// Page is already small enough, just use cover.bmp
|
||||
// Copy cover.bmp to thumb.bmp
|
||||
if (generateCoverBmp()) {
|
||||
FsFile src, dst;
|
||||
HalFile src, dst;
|
||||
if (Storage.openFileForRead("XTC", getCoverBmpPath(), src)) {
|
||||
if (Storage.openFileForWrite("XTC", getThumbBmpPath(height), dst)) {
|
||||
uint8_t buffer[512];
|
||||
@@ -350,7 +350,7 @@ bool Xtc::generateThumbBmp(int height) const {
|
||||
}
|
||||
|
||||
// Create thumbnail BMP file - use 1-bit format for fast home screen rendering (no gray passes)
|
||||
FsFile thumbBmp;
|
||||
HalFile thumbBmp;
|
||||
if (!Storage.openFileForWrite("XTC", getThumbBmpPath(height), thumbBmp)) {
|
||||
LOG_DBG("XTC", "Failed to create thumb BMP file");
|
||||
free(pageBuffer);
|
||||
|
||||
@@ -530,7 +530,7 @@ XtcError XtcParser::loadPageStreaming(uint32_t pageIndex,
|
||||
}
|
||||
|
||||
bool XtcParser::isValidXtcFile(const char* filepath) {
|
||||
FsFile file;
|
||||
HalFile file;
|
||||
if (!Storage.openFileForRead("XTC", filepath, file)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ class XtcParser {
|
||||
XtcError getLastError() const { return m_lastError; }
|
||||
|
||||
private:
|
||||
FsFile m_file;
|
||||
HalFile m_file;
|
||||
std::string m_filepath;
|
||||
bool m_isOpen;
|
||||
XtcHeader m_header;
|
||||
|
||||
Reference in New Issue
Block a user