[reader] Added detection of rich text files (.urt) TODO: parse differently this files

This commit is contained in:
Laury
2021-12-13 21:54:25 +01:00
parent 2248e415c4
commit 7fc28f8b72
6 changed files with 31 additions and 21 deletions

View File

@@ -12,10 +12,10 @@ View * ReadBookController::view() {
return &m_readerView;
}
void ReadBookController::setBook(const External::Archive::File& file) {
void ReadBookController::setBook(const External::Archive::File& file, bool isRichTextFile) {
m_file = &file;
loadPosition();
m_readerView.setText(reinterpret_cast<const char*>(file.data), file.dataLength);
m_readerView.setText(reinterpret_cast<const char*>(file.data), file.dataLength, isRichTextFile);
}
bool ReadBookController::handleEvent(Ion::Events::Event event) {