aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii/options.cpp
diff options
context:
space:
mode:
authorAndre Heider2009-09-20 11:47:11 +0000
committerAndre Heider2009-09-20 11:47:11 +0000
commitcd1628f70d3e950cb1480a904a25eebd6724fea1 (patch)
tree26ca73ad4ee10bf96166bdcc2f890a5aede4aef3 /backends/platform/wii/options.cpp
parent44ce4edeaa4457bf9057ed4776c00997b914e624 (diff)
downloadscummvm-rg350-cd1628f70d3e950cb1480a904a25eebd6724fea1.tar.gz
scummvm-rg350-cd1628f70d3e950cb1480a904a25eebd6724fea1.tar.bz2
scummvm-rg350-cd1628f70d3e950cb1480a904a25eebd6724fea1.zip
Mention mount errors on the status labels.
svn-id: r44202
Diffstat (limited to 'backends/platform/wii/options.cpp')
-rw-r--r--backends/platform/wii/options.cpp28
1 files changed, 19 insertions, 9 deletions
diff --git a/backends/platform/wii/options.cpp b/backends/platform/wii/options.cpp
index 0ae94b1e49..a23829782b 100644
--- a/backends/platform/wii/options.cpp
+++ b/backends/platform/wii/options.cpp
@@ -72,7 +72,7 @@ WiiOptionsDialog::WiiOptionsDialog(bool doubleStrike) :
new StaticTextWidget(_tab, 16, 16, 64, 16,
"Status:", Graphics::kTextAlignRight);
- _textDVDStatus = new StaticTextWidget(_tab, 96, 16, 192, 16, "Unknown",
+ _textDVDStatus = new StaticTextWidget(_tab, 96, 16, 272, 16, "Unknown",
Graphics::kTextAlignLeft);
new ButtonWidget(_tab, 16, 48, 108, 24, "Mount DVD", 'mdvd');
@@ -84,7 +84,7 @@ WiiOptionsDialog::WiiOptionsDialog(bool doubleStrike) :
new StaticTextWidget(_tab, 16, 16, 64, 16,
"Status:", Graphics::kTextAlignRight);
- _textSMBStatus = new StaticTextWidget(_tab, 96, 16, 192, 16, "Unknown",
+ _textSMBStatus = new StaticTextWidget(_tab, 96, 16, 272, 16, "Unknown",
Graphics::kTextAlignLeft);
new StaticTextWidget(_tab, 16, 52, 64, 16,
@@ -124,10 +124,14 @@ void WiiOptionsDialog::handleTickle() {
#ifdef USE_WII_DI
if (tab == _tabDVD) {
- if (fsf.isMounted(WiiFilesystemFactory::kDVD))
- _textDVDStatus->setLabel("Mounted");
- else
- _textDVDStatus->setLabel("Not mounted");
+ if (fsf.isMounted(WiiFilesystemFactory::kDVD)) {
+ _textDVDStatus->setLabel("DVD Mounted successfully");
+ } else {
+ if (fsf.failedToMount(kDVD))
+ _textDVDStatus->setLabel("Error while mounting the DVD");
+ else
+ _textDVDStatus->setLabel("DVD not mounted");
+ }
}
#endif
@@ -138,10 +142,16 @@ void WiiOptionsDialog::handleTickle() {
switch (status) {
case 0:
- if (fsf.isMounted(WiiFilesystemFactory::kSMB))
+ if (fsf.isMounted(WiiFilesystemFactory::kSMB)) {
label = "Network up, share mounted";
- else
- label = "Network up, share not mounted";
+ } else {
+ label = "Network up";
+
+ if (fsf.failedToMount(WiiFilesystemFactory::kSMB))
+ label += ", error while mounting the share";
+ else
+ label += ", share not mounted";
+ }
break;