summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2015-07-21 18:26:31 -0400
committerGravatar bunnei2015-07-21 18:26:31 -0400
commit4a9e97d67d4be878048dcc80f408912aa6f45056 (patch)
tree4b7535d9bd59b33ee1facbf13d545288ceb73c07
parentMerge pull request #966 from Subv/log (diff)
parentServices/AM: Stubbed am:app::GetNumContentInfos to return 0 results. (diff)
downloadyuzu-4a9e97d67d4be878048dcc80f408912aa6f45056.tar.gz
yuzu-4a9e97d67d4be878048dcc80f408912aa6f45056.tar.xz
yuzu-4a9e97d67d4be878048dcc80f408912aa6f45056.zip
Merge pull request #962 from Subv/am_app
Services/AM: Stubbed am:app::GetNumContentInfos to return 0 results.
-rw-r--r--src/core/hle/service/am/am.cpp9
-rw-r--r--src/core/hle/service/am/am.h13
-rw-r--r--src/core/hle/service/am/am_app.cpp14
3 files changed, 33 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 57dc1ece7..7332478fb 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -38,6 +38,15 @@ void GetTitleIDList(Service::Interface* self) {
38 LOG_WARNING(Service_AM, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type); 38 LOG_WARNING(Service_AM, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type);
39} 39}
40 40
41void GetNumContentInfos(Service::Interface* self) {
42 u32* cmd_buff = Kernel::GetCommandBuffer();
43
44 cmd_buff[1] = RESULT_SUCCESS.raw;
45 cmd_buff[2] = 1; // Number of content infos plus one
46
47 LOG_WARNING(Service_AM, "(STUBBED) called");
48}
49
41void Init() { 50void Init() {
42 using namespace Kernel; 51 using namespace Kernel;
43 52
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 063b8bd09..0b78f5393 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -37,6 +37,19 @@ void TitleIDListGetTotal(Service::Interface* self);
37 */ 37 */
38void GetTitleIDList(Service::Interface* self); 38void GetTitleIDList(Service::Interface* self);
39 39
40/**
41 * AM::GetNumContentInfos service function
42 * Inputs:
43 * 0 : Command header (0x100100C0)
44 * 1 : Unknown
45 * 2 : Unknown
46 * 3 : Unknown
47 * Outputs:
48 * 1 : Result, 0 on success, otherwise error code
49 * 2 : Number of content infos plus one
50 */
51void GetNumContentInfos(Service::Interface* self);
52
40/// Initialize AM service 53/// Initialize AM service
41void Init(); 54void Init();
42 55
diff --git a/src/core/hle/service/am/am_app.cpp b/src/core/hle/service/am/am_app.cpp
index c6fc81bc3..f40a87cb4 100644
--- a/src/core/hle/service/am/am_app.cpp
+++ b/src/core/hle/service/am/am_app.cpp
@@ -9,11 +9,19 @@
9namespace Service { 9namespace Service {
10namespace AM { 10namespace AM {
11 11
12// Empty arrays are illegal -- commented out until an entry is added. 12const Interface::FunctionInfo FunctionTable[] = {
13//const Interface::FunctionInfo FunctionTable[] = { }; 13 {0x100100C0, GetNumContentInfos, "GetNumContentInfos"},
14 {0x10020104, nullptr, "FindContentInfos"},
15 {0x10030142, nullptr, "ListContentInfos"},
16 {0x10040102, nullptr, "DeleteContents"},
17 {0x10050084, nullptr, "GetDataTitleInfos"},
18 {0x10070102, nullptr, "ListDataTitleTicketInfos"},
19 {0x100900C0, nullptr, "IsDataTitleInUse"},
20 {0x100A0000, nullptr, "IsExternalTitleDatabaseInitialized"},
21};
14 22
15AM_APP_Interface::AM_APP_Interface() { 23AM_APP_Interface::AM_APP_Interface() {
16 //Register(FunctionTable); 24 Register(FunctionTable);
17} 25}
18 26
19} // namespace AM 27} // namespace AM