From 41c03f481a6d95dab830d6ecf6e563ff7284dc9a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:17:19 -0500 Subject: service: Add ptm::gets and ptm::sets services --- src/core/hle/service/ptm/ptm_sets.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/core/hle/service/ptm/ptm_sets.cpp (limited to 'src/core/hle/service/ptm/ptm_sets.cpp') diff --git a/src/core/hle/service/ptm/ptm_sets.cpp b/src/core/hle/service/ptm/ptm_sets.cpp new file mode 100644 index 000000000..85823f001 --- /dev/null +++ b/src/core/hle/service/ptm/ptm_sets.cpp @@ -0,0 +1,19 @@ +// Copyright 2016 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/ptm/ptm_sets.h" + +namespace Service { +namespace PTM { + +const Interface::FunctionInfo FunctionTable[] = { + {0x00010080, nullptr, "SetSystemTime"}, +}; + +PTM_Sets::PTM_Sets() { + Register(FunctionTable); +} + +} // namespace PTM +} // namespace Service -- cgit v1.2.3 From 56656b75abf0d5c00b53fb091f17b2aa0d3f1c7c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Dec 2016 05:27:36 -0500 Subject: service: Add common ptm:u commands to other ptm services 3dbrew indicates that all services have access to these commands except for ptm:sets. --- src/core/hle/service/ptm/ptm_sets.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/hle/service/ptm/ptm_sets.cpp') diff --git a/src/core/hle/service/ptm/ptm_sets.cpp b/src/core/hle/service/ptm/ptm_sets.cpp index 85823f001..a8c6cf227 100644 --- a/src/core/hle/service/ptm/ptm_sets.cpp +++ b/src/core/hle/service/ptm/ptm_sets.cpp @@ -8,6 +8,7 @@ namespace Service { namespace PTM { const Interface::FunctionInfo FunctionTable[] = { + // Note that this service does not have access to ptm:u's common commands {0x00010080, nullptr, "SetSystemTime"}, }; -- cgit v1.2.3