#include <filesystem>
#include <cctype>
namespace fs = std::filesystem;
std::vector<std::string> FindFiles()
{
std::vector<std::string> vFiles;
for (auto p : fs::directory_iterator(fs::current_path().string().append("\\SAMPFUNCS")))
{
if (!is_regular_file(p.status())) continue;
auto strExtension = p.path().extension().string();
std::transform(strExtension.begin(), strExtension.end(), strExtension.begin(), [](BYTE c) { return std::tolower(c); });
if (!strExtension.compare(".sf")) vFiles.push_back(p.path().filename().string());
}
return vFiles;
}