mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-06 11:51:01 -04:00
89b8debe51
# Conflicts: # CMakeLists.txt # extern/aurora # src/dusk/ui/prelaunch.cpp # src/dusk/ui/settings.cpp
26 lines
728 B
C++
26 lines
728 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);
|
|
void ShowFolderSelect(
|
|
FileCallback callback, void* userdata, SDL_Window* window, const char* default_location);
|
|
|
|
std::string display_name_for_path(std::string_view path);
|
|
|
|
void ShowFolderSelect(FileCallback callback, void* userdata, SDL_Window* window,
|
|
const char* default_location);
|
|
|
|
} // namespace dusk
|