ChunItachi/dllmain.cpp
//find AXXX directories in data directories
find AXXX directories in data directories
find AXXX directories in data directories
vector<std::string> indexDirectories(string searchDir, vector<std::string> output) {
	for (auto& p : fs::directory_iterator(searchDir)) {
		try {
			string filename = p.path().string();
			string filename2 = filename.substr(filename.length() - 4, filename.length());
			if (filename2.substr(0, 1) == "A" && p.path().filename().string().length() == 4) { output.push_back(filename); }
		}
		catch (...) {}
	}
	return output;
}
vector < std :: string > indexDirectories ( string searchDir , vector < std :: string > output ) { for ( auto & p : fs :: directory_iterator ( searchDir ) ) { try { string filename = p . path ( ) . string ( ) ; string filename2 = filename . substr ( filename . length ( ) - 4 , filename . length ( ) ) ; if ( filename2 . substr ( 0 , 1 ) == " " && p . path ( ) . filename ( ) . string ( ) . length ( ) == 4 ) { output . push_back ( filename ) ; } } catch ( ... ) { } } return output ; }
find AXXX directories in data directories
find AXXX directories in data directories