mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-04-24 09:02:34 +00:00
26 lines
918 B
C++
26 lines
918 B
C++
#ifndef __ZELDA_SUPPORT_H__
|
|
#define __ZELDA_SUPPORT_H__
|
|
|
|
#include <functional>
|
|
#include <filesystem>
|
|
#include <vector>
|
|
#include <optional>
|
|
#include <list>
|
|
|
|
namespace zelda64 {
|
|
std::filesystem::path get_asset_path(const char* asset);
|
|
void open_file_dialog(std::function<void(bool success, const std::filesystem::path& path)> callback);
|
|
void open_file_dialog_multiple(std::function<void(bool success, const std::list<std::filesystem::path>& paths)> callback);
|
|
void show_error_message_box(const char *title, const char *message);
|
|
|
|
// Apple specific methods that usually require Objective-C. Implemented in support_apple.mm.
|
|
#ifdef __APPLE__
|
|
void dispatch_on_ui_thread(std::function<void()> func);
|
|
std::optional<std::filesystem::path> get_application_support_directory();
|
|
std::filesystem::path get_bundle_resource_directory();
|
|
std::filesystem::path get_bundle_directory();
|
|
#endif
|
|
}
|
|
|
|
#endif
|