namespace sts -> namespace ams

namespace sts::ams -> ams::exosphere, ams::.

This is to facilitate future use of ams:: namespace code in
mesosphere, as we'll want to include ams::util, ams::result, ams::svc...
This commit is contained in:
Michael Scire
2019-10-24 02:30:10 -07:00
committed by SciresM
parent 4059dc6187
commit 8cb77ac136
397 changed files with 968 additions and 926 deletions

View File

@@ -22,7 +22,7 @@
#include "sm_service_manager.hpp"
namespace sts::sm::impl {
namespace ams::sm::impl {
/* Anonymous namespace for implementation details. */
namespace {
@@ -167,11 +167,11 @@ namespace sts::sm::impl {
cfg::GetInitialProcessRange(&this->min, &this->max);
/* Ensure range is sane. */
STS_ASSERT(this->min <= this->max);
AMS_ASSERT(this->min <= this->max);
}
bool IsInitialProcess(os::ProcessId pid) const {
STS_ASSERT(pid != os::InvalidProcessId);
AMS_ASSERT(pid != os::InvalidProcessId);
return this->min <= pid && pid <= this->max;
}
};
@@ -234,7 +234,7 @@ namespace sts::sm::impl {
ncm::TitleId GetTitleIdForMitm(os::ProcessId pid) {
/* Anything that can request a mitm session must have a process info. */
const auto process_info = GetProcessInfo(pid);
STS_ASSERT(process_info != nullptr);
AMS_ASSERT(process_info != nullptr);
return process_info->tid;
}