forked from eden-emu/eden
		
	main, applets/web: Re-add progress dialog for RomFS extraction
This commit is contained in:
		
							parent
							
								
									93cb783853
								
							
						
					
					
						commit
						8b95bf041d
					
				
					 8 changed files with 126 additions and 69 deletions
				
			
		|  | @ -12,11 +12,12 @@ WebBrowserApplet::~WebBrowserApplet() = default; | |||
| DefaultWebBrowserApplet::~DefaultWebBrowserApplet() = default; | ||||
| 
 | ||||
| void DefaultWebBrowserApplet::OpenLocalWebPage( | ||||
|     std::string_view local_url, std::function<void(WebExitReason, std::string)> callback) const { | ||||
|     std::string_view local_url, std::function<void()> extract_romfs_callback, | ||||
|     std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const { | ||||
|     LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open local web page at {}", | ||||
|                 local_url); | ||||
| 
 | ||||
|     callback(WebExitReason::WindowClosed, "http://localhost/"); | ||||
|     callback(Service::AM::Applets::WebExitReason::WindowClosed, "http://localhost/"); | ||||
| } | ||||
| 
 | ||||
| } // namespace Core::Frontend
 | ||||
|  |  | |||
|  | @ -9,8 +9,6 @@ | |||
| 
 | ||||
| #include "core/hle/service/am/applets/web_types.h" | ||||
| 
 | ||||
| using namespace Service::AM::Applets; | ||||
| 
 | ||||
| namespace Core::Frontend { | ||||
| 
 | ||||
| class WebBrowserApplet { | ||||
|  | @ -18,16 +16,17 @@ public: | |||
|     virtual ~WebBrowserApplet(); | ||||
| 
 | ||||
|     virtual void OpenLocalWebPage( | ||||
|         std::string_view local_url, | ||||
|         std::function<void(WebExitReason, std::string)> callback) const = 0; | ||||
|         std::string_view local_url, std::function<void()> extract_romfs_callback, | ||||
|         std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const = 0; | ||||
| }; | ||||
| 
 | ||||
| class DefaultWebBrowserApplet final : public WebBrowserApplet { | ||||
| public: | ||||
|     ~DefaultWebBrowserApplet() override; | ||||
| 
 | ||||
|     void OpenLocalWebPage(std::string_view local_url, | ||||
|                           std::function<void(WebExitReason, std::string)> callback) const override; | ||||
|     void OpenLocalWebPage(std::string_view local_url, std::function<void()> extract_romfs_callback, | ||||
|                           std::function<void(Service::AM::Applets::WebExitReason, std::string)> | ||||
|                               callback) const override; | ||||
| }; | ||||
| 
 | ||||
| } // namespace Core::Frontend
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Morph
						Morph