diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-09-06 16:06:49 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-09-06 16:06:49 +0000 |
| commit | 21e0bad21e33e5ba89d914bad93132d97dc2baf5 (patch) | |
| tree | 68f26b47ddcf4b75add4b0b0c3a3d99a9583199d /Source/Core/DiscIO/Src/FileMonitor.cpp | |
| parent | f8e80a317e9efee879d76fda8393e435ab3ba224 (diff) | |
DiscIO: Augment the filemon to not slow down ISO properties for GC games
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4214 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/FileMonitor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/FileMonitor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Src/FileMonitor.cpp b/Source/Core/DiscIO/Src/FileMonitor.cpp index 9948021cbd..491042c3c8 100644 --- a/Source/Core/DiscIO/Src/FileMonitor.cpp +++ b/Source/Core/DiscIO/Src/FileMonitor.cpp @@ -30,6 +30,7 @@ #include "IniFile.h"
#include "LogManager.h"
+#include "../../Core/Src/Core.h"
#include "../../Core/Src/ConfigManager.h"
#include "FileSystemGCWii.h"
#include "VolumeCreator.h"
@@ -114,10 +115,11 @@ void CheckFile(std::string File, int Size) // -----------
// Find the GC filename
-
void FindFilename(u64 offset)
{
- // Don't do anything if the log is unselected
+ // 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 (!FileAccess) return;
|
