refactor: Drop FsFile alias, use HalFile in downstream code (#2141)

This commit is contained in:
Zach Nelson
2026-05-25 16:26:54 -04:00
committed by GitHub
parent d7797baff2
commit e9120888fa
63 changed files with 201 additions and 205 deletions
+4 -4
View File
@@ -21,7 +21,7 @@ bool Txt::load() {
return false;
}
FsFile file;
HalFile file;
if (!Storage.openFileForRead("TXT", filepath, file)) {
LOG_ERR("TXT", "Failed to open file: %s", filepath.c_str());
return false;
@@ -115,7 +115,7 @@ bool Txt::generateCoverBmp() const {
if (FsHelpers::hasBmpExtension(coverImagePath)) {
// Copy BMP file to cache
LOG_DBG("TXT", "Copying BMP cover image to cache");
FsFile src, dst;
HalFile src, dst;
if (!Storage.openFileForRead("TXT", coverImagePath, src)) {
return false;
}
@@ -132,7 +132,7 @@ bool Txt::generateCoverBmp() const {
} else if (FsHelpers::hasJpgExtension(coverImagePath)) {
// Convert JPG/JPEG to BMP (same approach as Epub)
LOG_DBG("TXT", "Generating BMP from JPG cover image");
FsFile coverJpg, coverBmp;
HalFile coverJpg, coverBmp;
if (!Storage.openFileForRead("TXT", coverImagePath, coverJpg)) {
return false;
}
@@ -175,7 +175,7 @@ bool Txt::readContent(uint8_t* buffer, size_t offset, size_t length) const {
return false;
}
FsFile file;
HalFile file;
if (!Storage.openFileForRead("TXT", filepath, file)) {
return false;
}