This commit is contained in:
dborth 2009-02-08 21:59:53 +00:00
parent 9bd13dceb6
commit 25b192c940
2 changed files with 7 additions and 1 deletions

View File

@ -51,7 +51,7 @@ bool isMounted[9] = { false, false, false, false, false, false, false, false, fa
/**************************************************************************** /****************************************************************************
* deviceThreading * deviceThreading
***************************************************************************/ ***************************************************************************/
lwp_t devicethread; lwp_t devicethread = LWP_THREAD_NULL;
/**************************************************************************** /****************************************************************************
* devicecallback * devicecallback
@ -244,11 +244,13 @@ bool ChangeInterface(int method, bool silent)
sprintf(rootdir, "/"); sprintf(rootdir, "/");
mounted = MountDVD(silent); mounted = MountDVD(silent);
} }
#ifdef HW_RVL
else if(method == METHOD_SMB) else if(method == METHOD_SMB)
{ {
sprintf(rootdir, "smb:/"); sprintf(rootdir, "smb:/");
mounted = ConnectShare(silent); mounted = ConnectShare(silent);
} }
#endif
return mounted; return mounted;
} }

View File

@ -20,6 +20,8 @@
#include "fileop.h" #include "fileop.h"
#include "http.h" #include "http.h"
#ifdef HW_RVL
static bool networkInit = false; static bool networkInit = false;
static bool autoNetworkInit = true; static bool autoNetworkInit = true;
static bool networkShareInit = false; static bool networkShareInit = false;
@ -260,3 +262,5 @@ ConnectShare (bool silent)
return networkShareInit; return networkShareInit;
} }
#endif