From 65d59e8d6ac898779b8db242ce1907df98b2fd51 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Tue, 23 Sep 2008 08:07:53 +0000 Subject: [PATCH] Gave file scope to functions and consts that are not declared in the header. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@637 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/VolumeDirectory.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/Core/DiscIO/Src/VolumeDirectory.cpp b/Source/Core/DiscIO/Src/VolumeDirectory.cpp index f72cf3a858..ccd15bdcb3 100644 --- a/Source/Core/DiscIO/Src/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/Src/VolumeDirectory.cpp @@ -29,15 +29,14 @@ #include "VolumeDirectory.h" #include "FileBlob.h" -const u8 ENTRY_SIZE = 0x0c; -const u8 FILE_ENTRY = 0; -const u8 DIRECTORY_ENTRY = 1; -const u64 FST_ADDRESS = 0x440; -const u32 MAX_NAME_LENGTH = 0x3df; - namespace DiscIO { +static const u8 ENTRY_SIZE = 0x0c; +static const u8 FILE_ENTRY = 0; +static const u8 DIRECTORY_ENTRY = 1; +static const u64 FST_ADDRESS = 0x440; +static const u32 MAX_NAME_LENGTH = 0x3df; CVolumeDirectory::CVolumeDirectory(const std::string& _rDirectory, bool _bIsWii) : m_totalNameSize(0) @@ -452,7 +451,7 @@ void CVolumeDirectory::WriteEntry(const FSTEntry& entry, u32& fstOffset, u32& na } #ifdef _WIN32 -bool ReadFoundFile(const WIN32_FIND_DATA& ffd, CVolumeDirectory::FSTEntry& entry) +static bool ReadFoundFile(const WIN32_FIND_DATA& ffd, CVolumeDirectory::FSTEntry& entry) { // ignore files starting with a . if(strncmp(ffd.cFileName, ".", 1) == 0)