From b93a1fe88141adf095bab09006b473205f597465 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Tue, 14 Apr 2015 11:30:55 +0200 Subject: Do not compute STM32CRC - use one from manifest.json Fixes #47 --- daemon/appinfo.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'daemon/appinfo.cpp') diff --git a/daemon/appinfo.cpp b/daemon/appinfo.cpp index 7e726c3..7dcf49d 100644 --- a/daemon/appinfo.cpp +++ b/daemon/appinfo.cpp @@ -6,7 +6,6 @@ #include #include "appinfo.h" #include "unpacker.h" -#include "stm32crc.h" namespace { struct ResourceEntry { @@ -332,17 +331,7 @@ QByteArray AppInfo::extractFromResourcePack(QIODevice *dev, int wanted_id) const int offset = 12 + 256 * 16 + e.offset; - QByteArray res = data.mid(offset, e.length); - - Stm32Crc crc; - crc.addData(res); - - if (crc.result() != e.crc) { - qCWarning(l) << "CRC failure in resource" << e.index << "on file" << res; - return QByteArray(); - } - - return res; + return data.mid(offset, e.length); } QImage AppInfo::decodeResourceImage(const QByteArray &data) const -- cgit v1.2.3