summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apt/apt.h
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/apt/apt.h
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/apt/apt.h')
-rw-r--r--src/core/hle/service/apt/apt.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/core/hle/service/apt/apt.h b/src/core/hle/service/apt/apt.h
index 668b4a66f..fd3c2bd37 100644
--- a/src/core/hle/service/apt/apt.h
+++ b/src/core/hle/service/apt/apt.h
@@ -361,6 +361,50 @@ void StartLibraryApplet(Service::Interface* self);
*/
void GetStartupArgument(Service::Interface* self);
+/**
+ * APT::SetNSStateField service function
+ * Inputs:
+ * 1 : u8 NS state field
+ * Outputs:
+ * 1 : Result of function, 0 on success, otherwise error code
+ * Note:
+ * This writes the input u8 to a NS state field.
+ */
+void SetNSStateField(Service::Interface* self);
+
+/**
+ * APT::GetNSStateField service function
+ * Outputs:
+ * 1 : Result of function, 0 on success, otherwise error code
+ * 8 : u8 NS state field
+ * Note:
+ * This returns a u8 NS state field(which can be set by cmd 0x00550040), at cmdreply+8.
+ */
+void GetNSStateField(Service::Interface* self);
+
+/**
+ * APT::CheckNew3DSApp service function
+ * Outputs:
+ * 1: Result code, 0 on success, otherwise error code
+ * 2: u8 output: 0 = Old3DS, 1 = New3DS.
+ * Note:
+ * This uses PTMSYSM:CheckNew3DS.
+ * When a certain NS state field is non-zero, the output value is zero,
+ * Otherwise the output is from PTMSYSM:CheckNew3DS.
+ * Normally this NS state field is zero, however this state field is set to 1
+ * when APT:PrepareToStartApplication is used with flags bit8 is set.
+ */
+void CheckNew3DSApp(Service::Interface* self);
+
+/**
+ * Wrapper for PTMSYSM:CheckNew3DS
+ * APT::CheckNew3DS service function
+ * Outputs:
+ * 1: Result code, 0 on success, otherwise error code
+ * 2: u8 output: 0 = Old3DS, 1 = New3DS.
+ */
+void CheckNew3DS(Service::Interface* self);
+
/// Initialize the APT service
void Init();