|
|
|
|
CSS+Lasso
|
15 lines
|
15 sloc
|
0.552 kB
  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. 	}