Commit 04914da2 authored by nanahira's avatar nanahira Committed by GitHub

Update image_manager.cpp

parent 6fa85114
...@@ -99,7 +99,7 @@ void ImageManager::RefreshImageDir(std::wstring path, int image_type) { ...@@ -99,7 +99,7 @@ void ImageManager::RefreshImageDir(std::wstring path, int image_type) {
do { do {
size_t len = wcslen(fdataw.cFileName); size_t len = wcslen(fdataw.cFileName);
if((fdataw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) || len < 5 if((fdataw.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) || len < 5
|| !(wcsicmp(fdataw.cFileName + len - 4, L".jpg") == 0 || wcsicmp(fdataw.cFileName + len - 4, L".png") == 0)) || !(_wcsicmp(fdataw.cFileName + len - 4, L".jpg") == 0 || _wcsicmp(fdataw.cFileName + len - 4, L".png") == 0))
continue; continue;
std::wstring filename = path + (std::wstring)fdataw.cFileName; std::wstring filename = path + (std::wstring)fdataw.cFileName;
ImageList[image_type].push_back(filename); ImageList[image_type].push_back(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment