Fix windows build

This commit is contained in:
Yousef Khadadeh 2026-05-17 18:32:54 +03:00
parent 51b086c654
commit 40688176d9
3 changed files with 696 additions and 697 deletions

View file

@ -181,7 +181,7 @@ std::string sdl_time_to_nice_access_time(const SDL_DateTime& t, SDL_DateFormat d
std::vector<std::string> glob_path_as_string_list(const std::filesystem::path& folder, const char* globStr, SDL_GlobFlags globFlags, const std::function<std::string(const std::filesystem::path)>& pathToStr) {
int globCount;
char** filesInPath = SDL_GlobDirectory(folder.c_str(), globStr, globFlags, &globCount);
char** filesInPath = SDL_GlobDirectory(folder.string().c_str(), globStr, globFlags, &globCount);
if(!filesInPath)
throw std::runtime_error("[glob_path_as_string_list] SDL_GlobDirectory failed");
std::vector<std::string> toRet(globCount);