Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1.     for (auto& p : std::experimental::filesystem::recursive_directory_iterator(SOUNDCUSTOM_DIR))
  2.     {
  3.         vector<string> songFiles;
  4.         ///TODO: get this right, then store in custommusic
  5.         while (p != std::experimental::filesystem::recursive_directory_iterator())
  6.         {
  7.             if (strstr(p.path().filename().generic_u8string().c_str(), ".mp3"))
  8.             {
  9.                 string fileName = SOUNDCUSTOM_DIR;
  10.                 fileName.append(p.path().filename().generic_u8string().c_str());
  11.                 songFiles.push_back(fileName);
  12.             }
  13.         }
  14.         CustomMusic::customMusic.push_back(songFiles);
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement