|
|
|
@ -8,17 +8,16 @@ using namespace std::literals; |
|
|
|
|
|
|
|
|
|
int main(){ |
|
|
|
|
const std::string_view baseDir{"C:/Users/sigon/OneDrive/Documents/"}; |
|
|
|
|
const std::array<std::string_view,3>directories{ |
|
|
|
|
const std::vector<std::string_view>directories{ |
|
|
|
|
"15gays1pack", |
|
|
|
|
"Egg Carton 2", |
|
|
|
|
"Summer Vibes Vol. 3", |
|
|
|
|
}; |
|
|
|
|
for(const std::string_view&dir:directories){ |
|
|
|
|
std::string directory{std::string(baseDir)+std::string(dir)}; |
|
|
|
|
for(auto const&songDir:std::filesystem::directory_iterator(directory)){ |
|
|
|
|
if(songDir.is_directory()){ |
|
|
|
|
for(auto const&file:std::filesystem::directory_iterator(songDir)){ |
|
|
|
|
if(file.is_regular_file()&&file.path().string().ends_with(".ssc")){ |
|
|
|
|
if(file.is_regular_file()&&(file.path().string().ends_with(".ssc")||file.path().string().ends_with(".sm")||file.path().string().ends_with(".smc"))){ |
|
|
|
|
std::ifstream stepchartFile{file.path().string()}; |
|
|
|
|
std::string fileContents; |
|
|
|
|
std::string_view titleLineView; |
|
|
|
|