summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-05-26 11:40:41 -0400
committerGravatar Zach Hilman2019-05-26 11:40:46 -0400
commitb77fde7c5c1f63aad9d4f01ea625805661870f3e (patch)
tree1a69520beebaac50ecd19d4c54828f7b8a498dd0 /src/core/hle
parentprepo: Save reports from PlayReport service (diff)
downloadyuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.tar.gz
yuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.tar.xz
yuzu-b77fde7c5c1f63aad9d4f01ea625805661870f3e.zip
loader: Move NSO module tracking to AppLoader
Also cleanup of general stuff
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/am/applets/applets.cpp5
-rw-r--r--src/core/hle/service/am/applets/general_backend.h2
-rw-r--r--src/core/hle/service/prepo/prepo.cpp6
3 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/service/am/applets/applets.cpp b/src/core/hle/service/am/applets/applets.cpp
index 2a945bc7b..d8ad0079a 100644
--- a/src/core/hle/service/am/applets/applets.cpp
+++ b/src/core/hle/service/am/applets/applets.cpp
@@ -37,17 +37,18 @@ AppletDataBroker::~AppletDataBroker() = default;
37 37
38AppletDataBroker::RawChannelData AppletDataBroker::PeekDataToAppletForDebug() const { 38AppletDataBroker::RawChannelData AppletDataBroker::PeekDataToAppletForDebug() const {
39 std::vector<std::vector<u8>> out_normal; 39 std::vector<std::vector<u8>> out_normal;
40 std::vector<std::vector<u8>> out_interactive;
41 40
42 for (const auto& storage : in_channel) { 41 for (const auto& storage : in_channel) {
43 out_normal.push_back(storage->GetData()); 42 out_normal.push_back(storage->GetData());
44 } 43 }
45 44
45 std::vector<std::vector<u8>> out_interactive;
46
46 for (const auto& storage : in_interactive_channel) { 47 for (const auto& storage : in_interactive_channel) {
47 out_interactive.push_back(storage->GetData()); 48 out_interactive.push_back(storage->GetData());
48 } 49 }
49 50
50 return {out_normal, out_interactive}; 51 return {std::move(out_normal), std::move(out_interactive)};
51} 52}
52 53
53std::unique_ptr<IStorage> AppletDataBroker::PopNormalDataToGame() { 54std::unique_ptr<IStorage> AppletDataBroker::PopNormalDataToGame() {
diff --git a/src/core/hle/service/am/applets/general_backend.h b/src/core/hle/service/am/applets/general_backend.h
index bc919a8dd..fb68a2543 100644
--- a/src/core/hle/service/am/applets/general_backend.h
+++ b/src/core/hle/service/am/applets/general_backend.h
@@ -34,7 +34,7 @@ private:
34 34
35class StubApplet final : public Applet { 35class StubApplet final : public Applet {
36public: 36public:
37 StubApplet(AppletId id); 37 explicit StubApplet(AppletId id);
38 ~StubApplet() override; 38 ~StubApplet() override;
39 39
40 void Initialize() override; 40 void Initialize() override;
diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp
index 961b8882d..7e134f5c1 100644
--- a/src/core/hle/service/prepo/prepo.cpp
+++ b/src/core/hle/service/prepo/prepo.cpp
@@ -50,7 +50,7 @@ private:
50 void SaveReportWithUserOld(Kernel::HLERequestContext& ctx) { 50 void SaveReportWithUserOld(Kernel::HLERequestContext& ctx) {
51 IPC::RequestParser rp{ctx}; 51 IPC::RequestParser rp{ctx};
52 const auto user_id = rp.PopRaw<u128>(); 52 const auto user_id = rp.PopRaw<u128>();
53 const auto unk1 = rp.PopRaw<u64>(); 53 const auto process_id = rp.PopRaw<u64>();
54 54
55 const auto data1 = ctx.ReadBuffer(0); 55 const auto data1 = ctx.ReadBuffer(0);
56 const auto data2 = ctx.ReadBuffer(1); 56 const auto data2 = ctx.ReadBuffer(1);
@@ -58,10 +58,10 @@ private:
58 LOG_DEBUG( 58 LOG_DEBUG(
59 Service_PREPO, 59 Service_PREPO,
60 "called, user_id={:016X}{:016X}, unk1={:016X}, data1_size={:016X}, data2_size={:016X}", 60 "called, user_id={:016X}{:016X}, unk1={:016X}, data1_size={:016X}, data2_size={:016X}",
61 user_id[1], user_id[0], unk1, data1.size(), data2.size()); 61 user_id[1], user_id[0], process_id, data1.size(), data2.size());
62 62
63 const auto& reporter{Core::System::GetInstance().GetReporter()}; 63 const auto& reporter{Core::System::GetInstance().GetReporter()};
64 reporter.SavePlayReport(Core::CurrentProcess()->GetTitleID(), unk1, {data1, data2}, 64 reporter.SavePlayReport(Core::CurrentProcess()->GetTitleID(), process_id, {data1, data2},
65 user_id); 65 user_id);
66 66
67 IPC::ResponseBuilder rb{ctx, 2}; 67 IPC::ResponseBuilder rb{ctx, 2};