summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-05-02 06:10:04 +0200
committerbunnei <bunneidev@gmail.com>2017-05-25 01:16:23 +0200
commit120b00fb1aee96aec42b1647ece98dcc3e192139 (patch)
tree2278bd436cd8887c0f35a6ef8fcb5fcb68adaae2 /src/core/loader
parentcore: Keep track of telemetry for the current emulation session. (diff)
downloadyuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar.gz
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar.bz2
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar.lz
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar.xz
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.tar.zst
yuzu-120b00fb1aee96aec42b1647ece98dcc3e192139.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/ncch.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp
index 1a4e3efa8..beeb13ffa 100644
--- a/src/core/loader/ncch.cpp
+++ b/src/core/loader/ncch.cpp
@@ -9,6 +9,7 @@
#include "common/logging/log.h"
#include "common/string_util.h"
#include "common/swap.h"
+#include "core/core.h"
#include "core/file_sys/archive_selfncch.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/resource_limit.h"
@@ -339,6 +340,8 @@ ResultStatus AppLoader_NCCH::Load() {
LOG_INFO(Loader, "Program ID: %016" PRIX64, ncch_header.program_id);
+ Core::Telemetry().AddField(Telemetry::FieldType::Session, "ProgramId", ncch_header.program_id);
+
is_loaded = true; // Set state to loaded
result = LoadExec(); // Load the executable into memory for booting