diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-07-20 15:12:12 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-07-20 15:12:12 +0000 |
| commit | eaaea3da946831e3c11af76bb5ca3c53a03c34f8 (patch) | |
| tree | d9677dbc5ca1e2ed443a84d65fdfbc29d4d3f313 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | 7765b3f556c8fa0a077344a9e6350482fc9c4a41 (diff) | |
Attempt at auto update SVN revision in title bar - let's see if it works for everyone, sorry Sonic, you'll have to find a linux solution (see svnrev_template.h). Also adds some smash bros cheats.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@34 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 8ec72c061a..f8d9b565ff 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -11,6 +11,13 @@ bool File::Exists(const std::string &filename) #endif
}
+bool File::IsDirectory(const std::string &filename) {
+#ifdef _WIN32
+ return (GetFileAttributes(filename.c_str()) & FILE_ATTRIBUTE_DIRECTORY) != 0;
+#else
+ return false; //TODO
+#endif
+}
std::string SanitizePath(const std::string &filename) {
std::string copy = filename;
|
