forked from eden-emu/eden
		
	am: Implement ILibraryAppletAccessor IsCompleted and GetResult
This commit is contained in:
		
							parent
							
								
									fed6ab14c3
								
							
						
					
					
						commit
						3cf7246e37
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		|  | @ -3,6 +3,7 @@ | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
| #include "common/logging/backend.h" | #include "common/logging/backend.h" | ||||||
|  | #include "common/string_util.h" | ||||||
| #include "core/frontend/applets/software_keyboard.h" | #include "core/frontend/applets/software_keyboard.h" | ||||||
| 
 | 
 | ||||||
| namespace Core::Frontend { | namespace Core::Frontend { | ||||||
|  |  | ||||||
|  | @ -533,7 +533,7 @@ public: | ||||||
|         // clang-format off
 |         // clang-format off
 | ||||||
|         static const FunctionInfo functions[] = { |         static const FunctionInfo functions[] = { | ||||||
|             {0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"}, |             {0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"}, | ||||||
|             {1, nullptr, "IsCompleted"}, |             {1, &ILibraryAppletAccessor::IsCompleted, "IsCompleted"}, | ||||||
|             {10, &ILibraryAppletAccessor::Start, "Start"}, |             {10, &ILibraryAppletAccessor::Start, "Start"}, | ||||||
|             {20, nullptr, "RequestExit"}, |             {20, nullptr, "RequestExit"}, | ||||||
|             {25, nullptr, "Terminate"}, |             {25, nullptr, "Terminate"}, | ||||||
|  | @ -576,11 +576,15 @@ private: | ||||||
|         LOG_WARNING(Service_AM, "(STUBBED) called"); |         LOG_WARNING(Service_AM, "(STUBBED) called"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     void IsCompleted(Kernel::HLERequestContext& ctx) { | ||||||
|  |         IPC::ResponseBuilder rb{ctx, 3}; | ||||||
|  |         rb.Push(RESULT_SUCCESS); | ||||||
|  |         rb.Push<u32>(applet->TransactionComplete()); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     void GetResult(Kernel::HLERequestContext& ctx) { |     void GetResult(Kernel::HLERequestContext& ctx) { | ||||||
|         IPC::ResponseBuilder rb{ctx, 2}; |         IPC::ResponseBuilder rb{ctx, 2}; | ||||||
|         rb.Push(RESULT_SUCCESS); |         rb.Push(applet->GetStatus()); | ||||||
| 
 |  | ||||||
|         LOG_WARNING(Service_AM, "(STUBBED) called"); |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void Start(Kernel::HLERequestContext& ctx) { |     void Start(Kernel::HLERequestContext& ctx) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zach Hilman
						Zach Hilman