summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
authorLPFaint99 <lpfaint99@gmail.com>2009-02-21 23:44:40 +0000
committerLPFaint99 <lpfaint99@gmail.com>2009-02-21 23:44:40 +0000
commit9cfa4e93851e2551d0237ab6727bd03dd229b34d (patch)
tree91f9b74d93aa18944ea65e3ab1c1a926ffc62526 /Source/Core/Common/Src/FileUtil.cpp
parentb4b94fe594b117dad33ca98a8962231d926ed10e (diff)
Adds IsDrive to FileUtil for win32,
Adds booting from drive to gui. disabled as it is currently too slow unless it is a virtual drive Changes DriveUtil to start checking at D: as it is unlikely that a, b, or c will be a cd/dvd drive Addes DriveBlob functions, untested on linux/osx probably needs more work Removes duplicate message from EXI_DeviceMemoryCard.cpp when creating a brand new memcard git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2345 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 648d909e79..0edb09e330 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -69,6 +69,18 @@ bool Exists(const char *filename)
return (result == 0);
}
+bool IsDisk(const char *filename)
+{
+#ifdef _WIN32
+ std::string copy = filename;
+ if (copy.size() < 4 && copy.c_str()[1] == ':')
+ return true;
+#else
+ // TODO: add linux \ osx
+#endif
+ return false;
+}
+
bool IsDirectory(const char *filename)
{
struct stat file_info;