Fix windows build
This commit is contained in:
parent
51b086c654
commit
40688176d9
3 changed files with 696 additions and 697 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue