summaryrefslogtreecommitdiff
path: root/src/common/file_search.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-09-11 00:04:36 -0400
committerGravatar bunnei2014-09-11 00:04:36 -0400
commit532a9e80a0bd242d2937335063b719130405d6bc (patch)
tree84fe1f054b62edc488a7a9e80eb8f79b2dd05cd0 /src/common/file_search.cpp
parentMerge pull request #103 from archshift/prune (diff)
parentMoved common_types::Rect from common to Common namespace (diff)
downloadyuzu-532a9e80a0bd242d2937335063b719130405d6bc.tar.gz
yuzu-532a9e80a0bd242d2937335063b719130405d6bc.tar.xz
yuzu-532a9e80a0bd242d2937335063b719130405d6bc.zip
Merge pull request #99 from archshift/ext-check
loader.cpp: improved file extension checking, made Upper/LowerStr useful, moved string_util into Common namespace
Diffstat (limited to 'src/common/file_search.cpp')
-rw-r--r--src/common/file_search.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/file_search.cpp b/src/common/file_search.cpp
index cd50ace75..63580f688 100644
--- a/src/common/file_search.cpp
+++ b/src/common/file_search.cpp
@@ -33,10 +33,10 @@ CFileSearch::CFileSearch(const CFileSearch::XStringVector& _rSearchStrings, cons
33void CFileSearch::FindFiles(const std::string& _searchString, const std::string& _strPath) 33void CFileSearch::FindFiles(const std::string& _searchString, const std::string& _strPath)
34{ 34{
35 std::string GCMSearchPath; 35 std::string GCMSearchPath;
36 BuildCompleteFilename(GCMSearchPath, _strPath, _searchString); 36 Common::BuildCompleteFilename(GCMSearchPath, _strPath, _searchString);
37#ifdef _WIN32 37#ifdef _WIN32
38 WIN32_FIND_DATA findData; 38 WIN32_FIND_DATA findData;
39 HANDLE FindFirst = FindFirstFile(UTF8ToTStr(GCMSearchPath).c_str(), &findData); 39 HANDLE FindFirst = FindFirstFile(Common::UTF8ToTStr(GCMSearchPath).c_str(), &findData);
40 40
41 if (FindFirst != INVALID_HANDLE_VALUE) 41 if (FindFirst != INVALID_HANDLE_VALUE)
42 { 42 {
@@ -47,7 +47,7 @@ void CFileSearch::FindFiles(const std::string& _searchString, const std::string&
47 if (findData.cFileName[0] != '.') 47 if (findData.cFileName[0] != '.')
48 { 48 {
49 std::string strFilename; 49 std::string strFilename;
50 BuildCompleteFilename(strFilename, _strPath, TStrToUTF8(findData.cFileName)); 50 Common::BuildCompleteFilename(strFilename, _strPath, Common::TStrToUTF8(findData.cFileName));
51 m_FileNames.push_back(strFilename); 51 m_FileNames.push_back(strFilename);
52 } 52 }
53 53