mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-04 19:25:43 -04:00
21 lines
476 B
C++
21 lines
476 B
C++
#pragma once
|
|
|
|
#include <SDL3/SDL_dialog.h>
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
struct SDL_Window;
|
|
|
|
namespace dusk {
|
|
|
|
using FileCallback = void (*)(void* userdata, const char* path, const char* error);
|
|
|
|
void ShowFileSelect(FileCallback callback, void* userdata, SDL_Window* window,
|
|
const SDL_DialogFileFilter* filters, int nfilters, const char* default_location,
|
|
bool allow_many);
|
|
|
|
std::string display_name_for_path(std::string_view path);
|
|
|
|
} // namespace dusk
|