diff options
author | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-06-12 00:12:16 +0200 |
---|---|---|
committer | purpasmart96 <kanzoconfigz@hotmail.com> | 2015-06-12 05:41:59 +0200 |
commit | 7933dbe6a0eee766a64b26f7d4461a40e473fcdc (patch) | |
tree | 91ae37d96b1e508f63055f285c64225811237b8a /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #848 from lioncash/ldm (diff) | |
download | yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.gz yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.bz2 yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.lz yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.xz yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.zst yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp new file mode 100644 index 000000000..57dc1ece7 --- /dev/null +++ b/src/core/hle/service/am/am.cpp @@ -0,0 +1,55 @@ +// Copyright 2015 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" + +#include "core/hle/service/service.h" +#include "core/hle/service/am/am_app.h" +#include "core/hle/service/am/am_net.h" +#include "core/hle/service/am/am_sys.h" + +#include "core/hle/hle.h" +#include "core/hle/kernel/event.h" +#include "core/hle/kernel/shared_memory.h" + +namespace Service { +namespace AM { + +void TitleIDListGetTotal(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + u32 media_type = cmd_buff[1] & 0xFF; + + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 0; + + LOG_WARNING(Service_AM, "(STUBBED) media_type %u", media_type); +} + +void GetTitleIDList(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + u32 num_titles = cmd_buff[1]; + u32 media_type = cmd_buff[2] & 0xFF; + u32 addr = cmd_buff[4]; + + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 0; + + LOG_WARNING(Service_AM, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type); +} + +void Init() { + using namespace Kernel; + + AddService(new AM_APP_Interface); + AddService(new AM_NET_Interface); + AddService(new AM_SYS_Interface); +} + +void Shutdown() { + +} + +} // namespace AM + +} // namespace Service |