summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ptm/ptm.cpp
diff options
context:
space:
mode:
authorLectem <lectem@gmail.com>2016-12-28 17:11:14 +0100
committerLectem <lectem@gmail.com>2017-03-18 10:44:01 +0100
commit501e23ce59a84cb0b0ef3db5b1c84939fa732811 (patch)
tree00f79bb33e874da62310fc334e35434b2a446366 /src/core/hle/service/ptm/ptm.cpp
parentMerge pull request #2497 from wwylele/input-2 (diff)
downloadyuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar.gz
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar.bz2
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar.lz
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar.xz
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.tar.zst
yuzu-501e23ce59a84cb0b0ef3db5b1c84939fa732811.zip
Diffstat (limited to 'src/core/hle/service/ptm/ptm.cpp')
-rw-r--r--src/core/hle/service/ptm/ptm.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 8ff808fd9..016ac8d4f 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -92,8 +92,7 @@ void GetSoftwareClosedFlag(Service::Interface* self) {
LOG_WARNING(Service_PTM, "(STUBBED) called");
}
-void CheckNew3DS(Service::Interface* self) {
- u32* cmd_buff = Kernel::GetCommandBuffer();
+void CheckNew3DS(IPC::RequestBuilder& rb) {
const bool is_new_3ds = Settings::values.is_new_3ds;
if (is_new_3ds) {
@@ -101,12 +100,17 @@ void CheckNew3DS(Service::Interface* self) {
"settings. Citra does not fully support New 3DS emulation yet!");
}
- cmd_buff[1] = RESULT_SUCCESS.raw;
- cmd_buff[2] = is_new_3ds ? 1 : 0;
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(u32(is_new_3ds ? 1 : 0));
LOG_WARNING(Service_PTM, "(STUBBED) called isNew3DS = 0x%08x", static_cast<u32>(is_new_3ds));
}
+void CheckNew3DS(Service::Interface* self) {
+ IPC::RequestBuilder rb(Kernel::GetCommandBuffer(), 0x040A0000);
+ CheckNew3DS(rb);
+}
+
void Init() {
AddService(new PTM_Gets);
AddService(new PTM_Play);