From e9430a0252160e1cd944a4e6422160585b7e7869 Mon Sep 17 00:00:00 2001 From: nakeee Date: Tue, 3 Mar 2009 00:21:08 +0000 Subject: 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 --- Source/Core/Common/Src/FileUtil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/Core/Common/Src/FileUtil.cpp') 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; } -- cgit v1.2.3