diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 20:48:40 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 20:48:40 +0000 |
commit | 3d41c1c466e4f9f1521ac6164e41f393a16402ff (patch) | |
tree | 9afb46a26ac1c0685221fef53add51f5d26963c4 | |
parent | 1b62cc103b671647f0846c0c79c571feeda76b70 (diff) |
Do not allow install doom files on a target that doesn't have a doom.rock plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14697 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 7013041080..f5376b5185 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -677,13 +677,19 @@ void RbUtilQt::installVoice() void RbUtilQt::installDoomBtn() { + QFile doomrock(userSettings->value("mountpoint").toString()+"/.rockbox/rocks/games/doom.rock"); + if(!doomrock.exists()){ + QMessageBox::critical(this, tr("Error"), tr("Your device doesn't have a doom plugin. Aborting.")); + return; + } + if(QMessageBox::question(this, tr("Confirm Installation"), tr("Do you really want to install the game addon files?"), QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) return; // create logger logger = new ProgressLoggerGui(this); logger->show(); - + installDoom(); } bool RbUtilQt::installDoomAuto() |