mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	am: Use ProfileSelect applet
This commit is contained in:
		
							parent
							
								
									4fb59fdfe1
								
							
						
					
					
						commit
						60b59d554d
					
				@ -19,6 +19,7 @@
 | 
			
		||||
#include "core/hle/service/am/applet_ae.h"
 | 
			
		||||
#include "core/hle/service/am/applet_oe.h"
 | 
			
		||||
#include "core/hle/service/am/applets/applets.h"
 | 
			
		||||
#include "core/hle/service/am/applets/profile_select.h"
 | 
			
		||||
#include "core/hle/service/am/applets/software_keyboard.h"
 | 
			
		||||
#include "core/hle/service/am/applets/stub_applet.h"
 | 
			
		||||
#include "core/hle/service/am/idle.h"
 | 
			
		||||
@ -39,6 +40,7 @@ constexpr ResultCode ERR_NO_DATA_IN_CHANNEL{ErrorModule::AM, 0x2};
 | 
			
		||||
constexpr ResultCode ERR_SIZE_OUT_OF_BOUNDS{ErrorModule::AM, 0x1F7};
 | 
			
		||||
 | 
			
		||||
enum class AppletId : u32 {
 | 
			
		||||
    ProfileSelect = 0x10,
 | 
			
		||||
    SoftwareKeyboard = 0x11,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -773,6 +775,8 @@ ILibraryAppletCreator::~ILibraryAppletCreator() = default;
 | 
			
		||||
 | 
			
		||||
static std::shared_ptr<Applets::Applet> GetAppletFromId(AppletId id) {
 | 
			
		||||
    switch (id) {
 | 
			
		||||
    case AppletId::ProfileSelect:
 | 
			
		||||
        return std::make_shared<Applets::ProfileSelect>();
 | 
			
		||||
    case AppletId::SoftwareKeyboard:
 | 
			
		||||
        return std::make_shared<Applets::SoftwareKeyboard>();
 | 
			
		||||
    default:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user