summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/FileMonitor.cpp
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2010-12-05 15:59:11 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2010-12-05 15:59:11 +0000
commitf169def36f5dcba69b7ce7e382ea1230d03f5433 (patch)
treee49f0bc3bebc73f0be31fdbda150439f5f8a0a67 /Source/Core/DiscIO/Src/FileMonitor.cpp
parente5311460a9324bd69b49cd9879755526a869ee83 (diff)
First pass at dealing with different size_t/off_t sizes in C90 environments.
Most of the code dealing with the LogTypes namespace was C which lead to a lot of nonsensical casting, so I have dumbed LOG_TYPE and LOG_LEVEL down to plain C even though the move of wiiuse into Source means we don't currently call GenericLog from C. Set logging threshold to MAX_LOGLEVEL at startup so debug builds will also p rint debugging messages before the GUI is running. For some reason the way we use SetDefaultStyle doesn't play nice with wx 2.9 so we just get the default black text on a black background. Using a gray background works around that problem, but I found it to also be much easier on the eyes so I have switched the background color on all versions. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6528 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/FileMonitor.cpp')
-rw-r--r--Source/Core/DiscIO/Src/FileMonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Src/FileMonitor.cpp b/Source/Core/DiscIO/Src/FileMonitor.cpp
index 1b3ccb0be8..dc51d4d3a6 100644
--- a/Source/Core/DiscIO/Src/FileMonitor.cpp
+++ b/Source/Core/DiscIO/Src/FileMonitor.cpp
@@ -98,7 +98,7 @@ void ReadGC(std::string FileName)
void CheckFile(std::string File, u64 Size)
{
// Don't do anything if the log is unselected
- if (!LogManager::GetInstance()->isEnable(LogTypes::FILEMON)) return;
+ if (!LogManager::GetInstance()->isEnable(FILEMON)) return;
// Do nothing if we found the same file again
if (CurrentFile == File) return;
@@ -124,7 +124,7 @@ void FindFilename(u64 offset)
// Don't do anything if a game is not running
if (Core::GetState() != Core::CORE_RUN) return;
// Or if the log is unselected
- if (!LogManager::GetInstance()->isEnable(LogTypes::FILEMON)) return;
+ if (!LogManager::GetInstance()->isEnable(FILEMON)) return;
if (!FileAccess) return;
if (!pFileSystem || ISOFile != SConfig::GetInstance().m_LastFilename)