From 898cb7dcefdbb81ba644a747417a193c1279d3cd Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 3 Feb 2012 23:52:07 +1000 Subject: [PATCH] Disabled M-series stub code and F&P Waveform stub code for fresh mac build --- SleepLib/loader_plugins/icon_loader.cpp | 2 +- SleepLib/loader_plugins/mseries_loader.cpp | 105 ++++++++++++++++++++- SleepLib/loader_plugins/mseries_loader.h | 2 +- 3 files changed, 102 insertions(+), 7 deletions(-) diff --git a/SleepLib/loader_plugins/icon_loader.cpp b/SleepLib/loader_plugins/icon_loader.cpp index 752c105b..70aadac2 100644 --- a/SleepLib/loader_plugins/icon_loader.cpp +++ b/SleepLib/loader_plugins/icon_loader.cpp @@ -168,7 +168,7 @@ int FPIconLoader::OpenMachine(Machine *mach, QString & path, Profile * profile) OpenDetail(mach,det[i],profile); } for (int i=0;i head, tail; + controlblock+=3; + quint16 datastarts,dataends,tmp16,h16,t16; + if (controlblock[0]) { + datastarts=controlblock[1] | (controlblock[2] << 8); + dataends=controlblock[3] | (controlblock[4] << 8); + } + controlblock+=6; + + if (controlblock[0]) { + if ((controlblock[1] | (controlblock[2] << 8))!=datastarts) { + qDebug() << "Non matching card size start identifier" << path; + } + if ((controlblock[3] | (controlblock[4] << 8))!=dataends) { + qDebug() << "Non matching card size end identifier" << path; + } + } + controlblock+=6; + count-=2; + + tmp16=controlblock[0] | controlblock[1] << 8; + + controlblock+=2; + for (int i=0;i MachList; - + quint32 epoch; }; #endif // MSERIES_LOADER_H