mirror of
				https://github.com/Zelda64Recomp/Zelda64Recomp.git
				synced 2025-10-30 08:03:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			757 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			757 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef __ZELDA_SUPPORT_H__
 | 
						|
#define __ZELDA_SUPPORT_H__
 | 
						|
 | 
						|
#include <functional>
 | 
						|
#include <filesystem>
 | 
						|
#include <optional>
 | 
						|
 | 
						|
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 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
 |