mirror of
				https://github.com/Zelda64Recomp/Zelda64Recomp.git
				synced 2025-10-30 08:03:03 +00:00 
			
		
		
		
	 14f92c41ab
			
		
	
	
		14f92c41ab
		
			
		
	
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	validate-internal / build (push) Has been cancelled
				
			* Add flatpak support. * Add gamepad to supported controls list in flatpak metainfo --------- Co-authored-by: Wiseguy <68165316+Mr-Wiseguy@users.noreply.github.com>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			964 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			964 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_program_path();
 | |
|     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
 |