summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ptm/ptm.cpp
diff options
context:
space:
mode:
authorJamePeng <jame_peng@sina.com>2016-04-20 12:12:05 +0200
committerJamePeng <jame_peng@sina.com>2016-04-20 12:12:05 +0200
commit7129611e65096ba2cbe8266f6cb068a9b18981d8 (patch)
treee411b0e7d50ece8adee68ddcd1bc1b6936b0b91e /src/core/hle/service/ptm/ptm.cpp
parentMerge pull request #1644 from polaris-/gdb-fixes (diff)
downloadyuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar.gz
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar.bz2
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar.lz
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar.xz
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.tar.zst
yuzu-7129611e65096ba2cbe8266f6cb068a9b18981d8.zip
Diffstat (limited to 'src/core/hle/service/ptm/ptm.cpp')
-rw-r--r--src/core/hle/service/ptm/ptm.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp
index 94f494690..3a0331ee1 100644
--- a/src/core/hle/service/ptm/ptm.cpp
+++ b/src/core/hle/service/ptm/ptm.cpp
@@ -3,7 +3,7 @@
// Refer to the license.txt file included.
#include "common/logging/log.h"
-
+#include "core/settings.h"
#include "core/file_sys/file_backend.h"
#include "core/hle/service/fs/archive.h"
#include "core/hle/service/ptm/ptm.h"
@@ -89,6 +89,20 @@ void IsLegacyPowerOff(Service::Interface* self) {
LOG_WARNING(Service_PTM, "(STUBBED) called");
}
+void CheckNew3DS(Service::Interface* self) {
+ u32* cmd_buff = Kernel::GetCommandBuffer();
+ const bool is_new_3ds = Settings::values.is_new3ds;
+
+ if (is_new_3ds) {
+ LOG_CRITICAL(Service_PTM, "The option 'is_new3ds' is enabled as part of the 'System' settings. Citra does not fully support New3DS emulation yet!");
+ }
+
+ cmd_buff[1] = RESULT_SUCCESS.raw;
+ cmd_buff[2] = is_new_3ds ? 1 : 0;
+
+ LOG_WARNING(Service_PTM, "(STUBBED) called isNew3DS = 0x%08x", static_cast<u32>(is_new_3ds));
+}
+
void Init() {
AddService(new PTM_Play_Interface);
AddService(new PTM_Sysm_Interface);