diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-09-22 20:35:44 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-09-22 20:35:44 +0000 |
| commit | cca92d4e385b73ae415e2e7b5b956163376349fd (patch) | |
| tree | 14b0d13d25d9d4ae874086e0862c721d91d88435 /Source/Core/DiscIO/Src/Filesystem.cpp | |
| parent | 38f04809f14a924fb2c5925cd6d4f2ec1859087f (diff) | |
constification, code style, changed vector<FileInfo*> to vector<FileInfo> for less allocs and more speed in debug mode
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@611 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/Filesystem.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/Filesystem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/DiscIO/Src/Filesystem.cpp b/Source/Core/DiscIO/Src/Filesystem.cpp index bbbd04c0b1..39bf82e822 100644 --- a/Source/Core/DiscIO/Src/Filesystem.cpp +++ b/Source/Core/DiscIO/Src/Filesystem.cpp @@ -36,15 +36,15 @@ IFileSystem* CreateFileSystem(const IVolume* _rVolume) {
IFileSystem* pFileSystem = new CFileSystemGCWii(_rVolume);
- if (pFileSystem)
+ if (!pFileSystem)
+ return 0;
+
+ if (!pFileSystem->IsInitialized())
{
- if (!pFileSystem->IsInitialized())
- {
- delete pFileSystem;
- pFileSystem = NULL;
- }
+ delete pFileSystem;
+ pFileSystem = NULL;
}
- return(pFileSystem);
+ return pFileSystem;
}
} // namespace
|
