mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-04 07:38:47 +00:00 
			
		
		
		
	Service/ACT: move ACT services to folder
This commit is contained in:
		
							parent
							
								
									da995a4377
								
							
						
					
					
						commit
						5dea1faedd
					
				
					 8 changed files with 44 additions and 10 deletions
				
			
		
							
								
								
									
										18
									
								
								src/core/hle/service/act/act.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/core/hle/service/act/act.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
// Copyright 2016 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/act/act.h"
 | 
			
		||||
#include "core/hle/service/act/act_a.h"
 | 
			
		||||
#include "core/hle/service/act/act_u.h"
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
void Init() {
 | 
			
		||||
    AddService(new ACT_A);
 | 
			
		||||
    AddService(new ACT_U);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
							
								
								
									
										14
									
								
								src/core/hle/service/act/act.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/core/hle/service/act/act.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
// Copyright 2016 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
/// Initialize AM service
 | 
			
		||||
void Init();
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
							
								
								
									
										30
									
								
								src/core/hle/service/act/act_a.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								src/core/hle/service/act/act_a.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
// Copyright 2016 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/act/act.h"
 | 
			
		||||
#include "core/hle/service/act/act_a.h"
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    // act:u shared commands
 | 
			
		||||
    {0x00010084, nullptr, "Initialize"},
 | 
			
		||||
    {0x00020040, nullptr, "GetErrorCode"},
 | 
			
		||||
    {0x000600C2, nullptr, "GetAccountDataBlock"},
 | 
			
		||||
    {0x000B0042, nullptr, "AcquireEulaList"},
 | 
			
		||||
    {0x000D0040, nullptr, "GenerateUuid"},
 | 
			
		||||
    // act:a
 | 
			
		||||
    {0x041300C2, nullptr, "UpdateMiiImage"},
 | 
			
		||||
    {0x041B0142, nullptr, "AgreeEula"},
 | 
			
		||||
    {0x04210042, nullptr, "UploadMii"},
 | 
			
		||||
    {0x04230082, nullptr, "ValidateMailAddress"},
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
ACT_A::ACT_A() {
 | 
			
		||||
    Register(FunctionTable);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
							
								
								
									
										22
									
								
								src/core/hle/service/act/act_a.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/core/hle/service/act/act_a.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
// Copyright 2016 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
class ACT_A final : public Service::Interface {
 | 
			
		||||
public:
 | 
			
		||||
    ACT_A();
 | 
			
		||||
 | 
			
		||||
    std::string GetPortName() const override {
 | 
			
		||||
        return "act:a";
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
							
								
								
									
										26
									
								
								src/core/hle/service/act/act_u.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								src/core/hle/service/act/act_u.cpp
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
// Copyright 2014 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/act/act.h"
 | 
			
		||||
#include "core/hle/service/act/act_u.h"
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
    // clang-format off
 | 
			
		||||
    {0x00010084, nullptr, "Initialize"},
 | 
			
		||||
    {0x00020040, nullptr, "GetErrorCode"},
 | 
			
		||||
    {0x000600C2, nullptr, "GetAccountDataBlock"},
 | 
			
		||||
    {0x000B0042, nullptr, "AcquireEulaList"},
 | 
			
		||||
    {0x000D0040, nullptr, "GenerateUuid"},
 | 
			
		||||
    // clang-format on
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
ACT_U::ACT_U() {
 | 
			
		||||
    Register(FunctionTable);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
							
								
								
									
										22
									
								
								src/core/hle/service/act/act_u.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/core/hle/service/act/act_u.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
// Copyright 2014 Citra Emulator Project
 | 
			
		||||
// Licensed under GPLv2 or any later version
 | 
			
		||||
// Refer to the license.txt file included.
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "core/hle/service/service.h"
 | 
			
		||||
 | 
			
		||||
namespace Service {
 | 
			
		||||
namespace ACT {
 | 
			
		||||
 | 
			
		||||
class ACT_U final : public Interface {
 | 
			
		||||
public:
 | 
			
		||||
    ACT_U();
 | 
			
		||||
 | 
			
		||||
    std::string GetPortName() const override {
 | 
			
		||||
        return "act:u";
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace ACT
 | 
			
		||||
} // namespace Service
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue