summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar greggameplayer2018-05-26 04:31:54 +0200
committerGravatar bunnei2018-05-25 22:31:54 -0400
commitb16e5c6a81abdd0ac7b62f466bf15e4d51db26f9 (patch)
tree35672c1565e13a34bef5908a73d9a654c4e836f6 /src/core
parentMerge pull request #466 from mailwl/nv-timeout (diff)
downloadyuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.gz
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.xz
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.zip
Add & correct miscellaneous things (#470)
* add some InfoType * correct OpenApplicationProxy cmd number * add IDisplayController functions * fix clang-format * add more system languages
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/svc.h3
-rw-r--r--src/core/hle/service/am/am.cpp35
-rw-r--r--src/core/hle/service/am/am.h19
-rw-r--r--src/core/hle/service/am/applet_oe.cpp2
4 files changed, 55 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.h b/src/core/hle/kernel/svc.h
index bc471d01e..70148c4fe 100644
--- a/src/core/hle/kernel/svc.h
+++ b/src/core/hle/kernel/svc.h
@@ -47,9 +47,12 @@ enum class GetInfoType : u64 {
47 NewMapRegionSize = 15, 47 NewMapRegionSize = 15,
48 // 3.0.0+ 48 // 3.0.0+
49 IsVirtualAddressMemoryEnabled = 16, 49 IsVirtualAddressMemoryEnabled = 16,
50 PersonalMmHeapUsage = 17,
50 TitleId = 18, 51 TitleId = 18,
51 // 4.0.0+ 52 // 4.0.0+
52 PrivilegedProcessId = 19, 53 PrivilegedProcessId = 19,
54 // 5.0.0+
55 UserExceptionContextAddr = 20,
53}; 56};
54 57
55void CallSVC(u32 immediate); 58void CallSVC(u32 immediate);
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index e78cef552..0223e0a5f 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -74,7 +74,40 @@ void IAudioController::GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestCo
74 rb.Push(volume); 74 rb.Push(volume);
75} 75}
76 76
77IDisplayController::IDisplayController() : ServiceFramework("IDisplayController") {} 77IDisplayController::IDisplayController() : ServiceFramework("IDisplayController") {
78 static const FunctionInfo functions[] = {
79 {0, nullptr, "GetLastForegroundCaptureImage"},
80 {1, nullptr, "UpdateLastForegroundCaptureImage"},
81 {2, nullptr, "GetLastApplicationCaptureImage"},
82 {3, nullptr, "GetCallerAppletCaptureImage"},
83 {4, nullptr, "UpdateCallerAppletCaptureImage"},
84 {5, nullptr, "GetLastForegroundCaptureImageEx"},
85 {6, nullptr, "GetLastApplicationCaptureImageEx"},
86 {7, nullptr, "GetCallerAppletCaptureImageEx"},
87 {8, nullptr, "TakeScreenShotOfOwnLayer"}, // 2.0.0+
88 {9, nullptr, "CopyBetweenCaptureBuffers"}, // 5.0.0+
89 {10, nullptr, "AcquireLastApplicationCaptureBuffer"},
90 {11, nullptr, "ReleaseLastApplicationCaptureBuffer"},
91 {12, nullptr, "AcquireLastForegroundCaptureBuffer"},
92 {13, nullptr, "ReleaseLastForegroundCaptureBuffer"},
93 {14, nullptr, "AcquireCallerAppletCaptureBuffer"},
94 {15, nullptr, "ReleaseCallerAppletCaptureBuffer"},
95 {16, nullptr, "AcquireLastApplicationCaptureBufferEx"},
96 {17, nullptr, "AcquireLastForegroundCaptureBufferEx"},
97 {18, nullptr, "AcquireCallerAppletCaptureBufferEx"},
98 // 2.0.0+
99 {20, nullptr, "ClearCaptureBuffer"},
100 {21, nullptr, "ClearAppletTransitionBuffer"},
101 // 4.0.0+
102 {22, nullptr, "AcquireLastApplicationCaptureSharedBuffer"},
103 {23, nullptr, "ReleaseLastApplicationCaptureSharedBuffer"},
104 {24, nullptr, "AcquireLastForegroundCaptureSharedBuffer"},
105 {25, nullptr, "ReleaseLastForegroundCaptureSharedBuffer"},
106 {26, nullptr, "AcquireCallerAppletCaptureSharedBuffer"},
107 {27, nullptr, "ReleaseCallerAppletCaptureSharedBuffer"},
108 };
109 RegisterHandlers(functions);
110}
78 111
79IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {} 112IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {}
80 113
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 5b3d416f3..dd6158eb2 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -18,10 +18,25 @@ class NVFlinger;
18 18
19namespace AM { 19namespace AM {
20 20
21// TODO: Add more languages
22enum SystemLanguage { 21enum SystemLanguage {
23 Japanese = 0, 22 Japanese = 0,
24 English = 1, 23 English = 1, // en-US
24 French = 2,
25 German = 3,
26 Italian = 4,
27 Spanish = 5,
28 Chinese = 6,
29 Korean = 7,
30 Dutch = 8,
31 Portuguese = 9,
32 Russian = 10,
33 Taiwanese = 11,
34 BritishEnglish = 12, // en-GB
35 CanadianFrench = 13,
36 LatinAmericanSpanish = 14, // es-419
37 // 4.0.0+
38 SimplifiedChinese = 15,
39 TraditionalChinese = 16,
25}; 40};
26 41
27class IWindowController final : public ServiceFramework<IWindowController> { 42class IWindowController final : public ServiceFramework<IWindowController> {
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp
index 68388bf5e..587a922fe 100644
--- a/src/core/hle/service/am/applet_oe.cpp
+++ b/src/core/hle/service/am/applet_oe.cpp
@@ -98,7 +98,7 @@ void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) {
98AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger) 98AppletOE::AppletOE(std::shared_ptr<NVFlinger::NVFlinger> nvflinger)
99 : ServiceFramework("appletOE"), nvflinger(std::move(nvflinger)) { 99 : ServiceFramework("appletOE"), nvflinger(std::move(nvflinger)) {
100 static const FunctionInfo functions[] = { 100 static const FunctionInfo functions[] = {
101 {0x00000000, &AppletOE::OpenApplicationProxy, "OpenApplicationProxy"}, 101 {0, &AppletOE::OpenApplicationProxy, "OpenApplicationProxy"},
102 }; 102 };
103 RegisterHandlers(functions); 103 RegisterHandlers(functions);
104} 104}