From ea934759e15c94ad2fa67e76e11f5d469ebfccf4 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Wed, 16 Jul 2008 20:50:16 +0000 Subject: 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 --- Source/Core/Common/Src/FileUtil.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Source/Core/Common/Src/FileUtil.cpp (limited to 'Source/Core/Common/Src/FileUtil.cpp') 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 -- cgit v1.2.3