#define VER_LAMEXP_MAJOR 4
#define VER_LAMEXP_MINOR_HI 0
#define VER_LAMEXP_MINOR_LO 1
-#define VER_LAMEXP_BUILD 387
+#define VER_LAMEXP_BUILD 390
#define VER_LAMEXP_SUFFIX Beta-10
/*
bool bTimeout = false;
bool bAborted = false;
- QRegExp regExp("\\[(\\d+)\\.(\\d+)%\\]");
+ QRegExp regExp("\\[(\\s*)(\\d+)\\.(\\d+)%\\]");
while(process.state() != QProcess::NotRunning)
{
if(regExp.lastIndexIn(text) >= 0)
{
bool ok = false;
- int progress = regExp.cap(1).toInt(&ok);
+ int progress = regExp.cap(2).toInt(&ok);
if(ok) emit statusUpdated(progress);
}
else if(!text.isEmpty())
/*
* Clean folder
*/
-bool lamexp_clean_folder(const QString folderPath)
+bool lamexp_clean_folder(const QString &folderPath)
{
QDir tempFolder(folderPath);
QFileInfoList entryList = tempFolder.entryInfoList(QDir::AllEntries | QDir::NoDotAndDotDot);
static const char* LAMEXP_DEFAULT_LANGID = "en";
//Auxiliary functions
-bool lamexp_clean_folder(const QString folderPath);
+bool lamexp_clean_folder(const QString &folderPath);
const QString lamexp_version2string(const QString &pattern, unsigned int version, const QString &defaultText);
QString lamexp_known_folder(lamexp_known_folder_t folder_id);
__int64 lamexp_free_diskspace(const QString &path);
{
m_bSuccess = false;
delay();
-
+
QMap<QString, QString> checksum;
QMap<QString, unsigned int> version;