VERY experimental Nintendo Switch 2 emulator
C++
Service/ACT: move ACT services to folder
mailwl11e9681df21a
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex e26677079e..266c9d8adc 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -52,8 +52,9 @@ set(SRCShle/kernel/timer.cpphle/kernel/vm_manager.cpphle/service/ac_u.cpp- hle/service/act_a.cpp- hle/service/act_u.cpp+ hle/service/act/act.cpp+ hle/service/act/act_a.cpp+ hle/service/act/act_u.cpphle/service/am/am.cpphle/service/am/am_app.cpphle/service/am/am_net.cpp@@ -215,8 +216,9 @@ set(HEADERShle/kernel/vm_manager.hhle/result.hhle/service/ac_u.h- hle/service/act_a.h- hle/service/act_u.h+ hle/service/act/act.h+ hle/service/act/act_a.h+ hle/service/act/act_u.hhle/service/am/am.hhle/service/am/am_app.hhle/service/am/am_net.hdiff --git a/src/core/hle/service/act/act.cpp b/src/core/hle/service/act/act.cppnew file mode 100644index 0000000000..9600036c08--- /dev/null+++ b/src/core/hle/service/act/act.cpp@@ -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 Servicediff --git a/src/core/hle/service/act/act.h b/src/core/hle/service/act/act.hnew file mode 100644index 0000000000..3481532c05--- /dev/null+++ b/src/core/hle/service/act/act.h@@ -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 Servicediff --git a/src/core/hle/service/act_a.cpp b/src/core/hle/service/act/act_a.cppsimilarity index 90%rename from src/core/hle/service/act_a.cpprename to src/core/hle/service/act/act_a.cppindex 9880aafff4..5c523368f8 100644--- a/src/core/hle/service/act_a.cpp+++ b/src/core/hle/service/act/act_a.cpp@@ -2,7 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "core/hle/service/act_a.h"+#include "core/hle/service/act/act.h"+#include "core/hle/service/act/act_a.h"namespace Service {namespace ACT {diff --git a/src/core/hle/service/act_a.h b/src/core/hle/service/act/act_a.hsimilarity index 100%rename from src/core/hle/service/act_a.hrename to src/core/hle/service/act/act_a.hdiff --git a/src/core/hle/service/act_u.cpp b/src/core/hle/service/act/act_u.cppsimilarity index 88%rename from src/core/hle/service/act_u.cpprename to src/core/hle/service/act/act_u.cppindex b4f69c57d1..cf98aa1d61 100644--- a/src/core/hle/service/act_u.cpp+++ b/src/core/hle/service/act/act_u.cpp@@ -2,7 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "core/hle/service/act_u.h"+#include "core/hle/service/act/act.h"+#include "core/hle/service/act/act_u.h"namespace Service {namespace ACT {diff --git a/src/core/hle/service/act_u.h b/src/core/hle/service/act/act_u.hsimilarity index 100%rename from src/core/hle/service/act_u.hrename to src/core/hle/service/act/act_u.hdiff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex effecc0436..3e70e05ae4 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -5,8 +5,7 @@#include "common/logging/log.h"#include "common/string_util.h"#include "core/hle/service/ac_u.h"-#include "core/hle/service/act_a.h"-#include "core/hle/service/act_u.h"+#include "core/hle/service/act/act.h"#include "core/hle/service/am/am.h"#include "core/hle/service/apt/apt.h"#include "core/hle/service/boss/boss.h"@@ -113,6 +112,7 @@ void Init() {AddNamedPort(new ERR::ERR_F);FS::ArchiveInit();+ ACT::Init();AM::Init();APT::Init();BOSS::Init();@@ -132,8 +132,6 @@ void Init() {QTM::Init();AddService(new AC::AC_U);- AddService(new ACT::ACT_A);- AddService(new ACT::ACT_U);AddService(new CSND::CSND_SND);AddService(new DSP_DSP::Interface);AddService(new GSP::GSP_GPU);