From 1e6c3181dcc7ec4edbe99db0d886ce7a9c483056 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 24 Mar 2005 20:14:38 +0000 Subject: cd to sd or mmc --- (limited to 'noncore') diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index fd81313..979549d 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -333,8 +333,13 @@ void AdvancedFm::docButtonPushed() { } void AdvancedFm::SDButtonPushed() { - Opie::Core::OStorageInfo info; - changeTo(info.sdPath()); + Opie::Core::OStorageInfo info; + if(StorageInfo::hasSd() ) { + changeTo(info.sdPath()); + } + else if(StorageInfo::hasMmc()) { + changeTo(info.mmcPath()); + } } void AdvancedFm::CFButtonPushed() { -- cgit v0.9.0.2