Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto& p : std::experimental::filesystem::recursive_directory_iterator(SOUNDCUSTOM_DIR))
- {
- vector<string> songFiles;
- ///TODO: get this right, then store in custommusic
- while (p != std::experimental::filesystem::recursive_directory_iterator())
- {
- if (strstr(p.path().filename().generic_u8string().c_str(), ".mp3"))
- {
- string fileName = SOUNDCUSTOM_DIR;
- fileName.append(p.path().filename().generic_u8string().c_str());
- songFiles.push_back(fileName);
- }
- }
- CustomMusic::customMusic.push_back(songFiles);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement