mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-05 11:33:39 -04:00
79b1f4ab4d
* Customizable data directory & migration * Add file/dir rename fast-path * Write data_location.json to base path on Windows; fix UTF-8 custom paths * Build fix * Another build fix * Android data directory selection * Fix CMake target ref
23 lines
593 B
C++
23 lines
593 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);
|
|
|
|
} // namespace dusk
|