ChunItachi/filefunctions.cpp
//finds XMLs in the setup search directories, overwrites as it finds newer files in similar fashion to Chuni
finds XMLs in the setup search directories, overwrites as it finds newer files in similar fashion to Chuni
finds XMLs in the setup search directories overwrites as it finds newer files in similar fashion to Chuni
string findXML(int songID) {
	string output = "";
	string paddedSong = to_string(songID);
	paddedSong.insert(paddedSong.begin(), 4 - paddedSong.length(), '0');
	for (int i = 0; i < finalSearchDirs.size(); i++) {
		if (fs::exists(finalSearchDirs[i] + "\\music\\music" + paddedSong + "\\Music.xml")) {
			output = finalSearchDirs[i] + "\\music\\music" + paddedSong + "\\Music.xml";
		}
	}
	return output;
}
string findXML ( int songID ) { string output = " " ; string paddedSong = to_string ( songID ) ; paddedSong . insert ( paddedSong . begin ( ) , 4 - paddedSong . length ( ) , ' ' ) ; for ( int i = 0 ; i < finalSearchDirs . size ( ) ; i ++ ) { if ( fs :: exists ( finalSearchDirs [ i ] + " \\ \\ " + paddedSong + " \\ " ) ) { output = finalSearchDirs [ i ] + " \\ \\ " + paddedSong + " \\ " ; } } return output ; }
finds XMLs in the setup search directories, overwrites as it finds newer files in similar fashion to Chuni
finds XMLs in the setup search directories overwrites as it finds newer files in similar fashion to Chuni