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

@@ -18,7 +18,7 @@
#include "dmnt_cheat_service.hpp"
#include "impl/dmnt_cheat_api.hpp"
namespace sts::dmnt::cheat {
namespace ams::dmnt::cheat {
/* ========================================================================================= */
/* ==================================== Meta Commands ==================================== */

View File

@@ -19,7 +19,7 @@
#include <stratosphere.hpp>
#include <stratosphere/dmnt.hpp>
namespace sts::dmnt::cheat {
namespace ams::dmnt::cheat {
class CheatService final : public sf::IServiceObject {
private:

View File

@@ -20,7 +20,7 @@
#include "dmnt_cheat_debug_events_manager.hpp"
#include <stratosphere/map.hpp>
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
namespace {

View File

@@ -18,7 +18,7 @@
#include <stratosphere.hpp>
#include <stratosphere/dmnt.hpp>
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
bool GetHasActiveCheatProcess();
Handle GetCheatProcessEventHandle();

View File

@@ -18,7 +18,7 @@
/* WORKAROUND: This design prevents a kernel deadlock from occurring on 6.0.0+ */
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
namespace {

View File

@@ -18,7 +18,7 @@
#include <switch.h>
#include <stratosphere.hpp>
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
void ContinueCheatProcess(Handle cheat_dbg_hnd);

View File

@@ -18,7 +18,7 @@
#include "dmnt_cheat_vm.hpp"
#include "dmnt_cheat_api.hpp"
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
void CheatVirtualMachine::DebugLog(u32 log_id, u64 value) {
/* Just unconditionally try to create the log folder. */

View File

@@ -19,7 +19,7 @@
#include <stratosphere.hpp>
#include <stratosphere/dmnt.hpp>
namespace sts::dmnt::cheat::impl {
namespace ams::dmnt::cheat::impl {
enum CheatVmOpcodeType : u32 {
CheatVmOpcodeType_StoreStatic = 0,

View File

@@ -43,19 +43,19 @@ extern "C" {
void __appExit(void);
}
namespace sts::ams {
namespace ams {
ncm::TitleId StratosphereTitleId = ncm::TitleId::Dmnt;
ncm::TitleId CurrentTitleId = ncm::TitleId::Dmnt;
namespace result {
bool CallFatalOnResultAssertion = true;
}
}
namespace sts::result {
bool CallFatalOnResultAssertion = true;
}
using namespace sts;
using namespace ams;
void __libnx_initheap(void) {
void* addr = nx_inner_heap;

View File

@@ -18,7 +18,7 @@
#include <switch.h>
#include <stratosphere.hpp>
namespace sts::dmnt {
namespace ams::dmnt {
/* TODO: Move into libstratosphere, eventually. */
struct TargetIOFileHandle : sf::LargeData, sf::PrefersMapAliasTransferMode {

View File

@@ -16,7 +16,7 @@
#include "dmnt_service.hpp"
namespace sts::dmnt {
namespace ams::dmnt {
Result DebugMonitorService::BreakDebugProcess(Handle debug_hnd) {
/* Nintendo discards the output of this command, but we will return it. */

View File

@@ -20,15 +20,15 @@
namespace std {
template<>
struct hash<sts::dmnt::TargetIOFileHandle> {
u64 operator()(sts::dmnt::TargetIOFileHandle const &handle) const noexcept {
struct hash<ams::dmnt::TargetIOFileHandle> {
u64 operator()(ams::dmnt::TargetIOFileHandle const &handle) const noexcept {
return handle.GetValue();
}
};
}
namespace sts::dmnt {
namespace ams::dmnt {
namespace {