summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-03-03 00:21:08 +0000
committernakeee <nakeee@gmail.com>2009-03-03 00:21:08 +0000
commite9430a0252160e1cd944a4e6422160585b7e7869 (patch)
treeff16cbe95d2be9f4470ea33714ef4075814f50f8 /Source/Core/Common/Src/FileUtil.cpp
parent9ef42aefac405e7f4eea922980c1934d2c1c635d (diff)
fixed crash on linux, added DISCIO logging type, some extra logging messages and some logging cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2533 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 7059486303..e685076495 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -174,6 +174,11 @@ bool CreateFullPath(const char *fullPath)
int panicCounter = 100;
INFO_LOG(COMMON, "CreateFullPath: path %s\n", fullPath);
+ if (File::Exists(fullPath)) {
+ INFO_LOG(COMMON, "CreateFullPath: path exists %s\n", fullPath);
+ return true;
+ }
+
const char *position = fullPath;
while (true) {
// Find next sub path, support both \ and / directory separators
@@ -329,6 +334,7 @@ u64 GetSize(const char *filename)
// on windows it's actually _stat64 defined in commonFuncs
struct stat64 buf;
if (stat64(filename, &buf) == 0) {
+ DEBUG_LOG(COMMON, "GetSize: %s: %d", filename, buf.st_size);
return buf.st_size;
}