1.5 KiB
1.5 KiB
Fix mod build environment compilation errors
Task
Fix compilation errors in the mod PlatformIO build environment after the upstream resync. The default environment was also verified.
Changes Made
Include path fixes (11 files)
src/activities/{reader,settings,util}/*.cpp: Changed bare#include "ActivityResult.h"to#include "activities/ActivityResult.h"(10 files)src/activities/reader/DictionarySuggestionsActivity.cpp: Changed#include "RenderLock.h"to#include "activities/RenderLock.h"
API compatibility fixes
src/util/Dictionary.h: Replaced invalidclass FsFile;forward declaration with#include <HalStorage.h>(FsFileis now ausingalias)lib/Epub/Epub/blocks/TextBlock.h: AddedgetWordXpos()public accessorlib/GfxRenderer/GfxRenderer.{h,cpp}: Re-addeddrawTextRotated90CCW()withRotated90CCWenum value and coordinate mapping, adapted to new fixed-point renderingsrc/activities/reader/{DictionarySuggestionsActivity,DictionaryWordSelectActivity,LookedUpWordsActivity}.cpp: FixedsetResult()rvalue ref binding (6 lambdas)src/activities/reader/EpubReaderActivity.cpp: Fixedstd::max(uint8_t, int)type mismatchsrc/util/StringUtils.{h,cpp}: Re-addedcheckFileExtension()andsortFileList()functionssrc/RecentBooksStore.{h,cpp}: Added missingremoveBook()method
Follow-up
- Both
modanddefaultenvironments build successfully at 95.2% flash usage - No functional testing performed yet (on-device verification needed)