From ddc59e3881c9571e607fd1b0f5c30615c7ad68d0 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Wed, 6 Dec 2017 12:41:46 +0100 Subject: [PATCH 1/2] Applet: Print unknown AppletId on ASSERT --- src/core/hle/service/apt/apt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index fbc080d765..9d4a3c502d 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp @@ -114,7 +114,7 @@ static u64 GetTitleIdForApplet(AppletId id) { return data.applet_ids[0] == id || data.applet_ids[1] == id; }); - ASSERT_MSG(itr != applet_titleids.end(), "Unknown applet id"); + ASSERT_MSG(itr != applet_titleids.end(), "Unknown applet id %u", id); return itr->title_ids[CFG::GetRegionValue()]; } From b9db9af9e8bd761300a6da487f6afa5de578738f Mon Sep 17 00:00:00 2001 From: B3n30 Date: Wed, 6 Dec 2017 13:48:27 +0100 Subject: [PATCH 2/2] fixup! Applet: Print unknown AppletId on ASSERT --- src/core/hle/service/apt/apt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 9d4a3c502d..b5a0f7d030 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp @@ -114,7 +114,7 @@ static u64 GetTitleIdForApplet(AppletId id) { return data.applet_ids[0] == id || data.applet_ids[1] == id; }); - ASSERT_MSG(itr != applet_titleids.end(), "Unknown applet id %u", id); + ASSERT_MSG(itr != applet_titleids.end(), "Unknown applet id 0x%03X", static_cast(id)); return itr->title_ids[CFG::GetRegionValue()]; }