summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-07-16 20:50:16 +0000
committerhrydgard <hrydgard@gmail.com>2008-07-16 20:50:16 +0000
commitea934759e15c94ad2fa67e76e11f5d469ebfccf4 (patch)
tree43dd6f2fa6a3e747e0d81c602d5490d02b10b087 /Source/Core/Common/Src/FileUtil.cpp
parentcb5072c3e4cf66d33d30697984a9179534334b38 (diff)
Mostly cleanup and some better crash messages. Also enabled partial block linking (see JitCache.cpp), should give a small speedup but may cause problems, please report!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@12 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
new file mode 100644
index 0000000000..1eb5540486
--- /dev/null
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -0,0 +1,11 @@
+#include "Common.h"
+#include "FileUtil.h"
+
+bool File::Exists(const std::string &filename)
+{
+#ifdef _WIN32
+ return GetFileAttributes(filename.c_str()) != INVALID_FILE_ATTRIBUTES;
+#else
+ return true; //TODO
+#endif
+} \ No newline at end of file