Atmosphere/libraries/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp # line 218
Atmosphere/stratosphere/loader/source/ldr_meta.cpp # line 210
This does make both tinfoil and it's internal retroarch forwarder run (it spawns a plain hbmenu application forwarder)
C++:
struct TinfoilId {
u64 value;
constexpr operator ProgramId() const {
return { this->value };
}
constexpr inline bool operator==(const TinfoilId &) const = default;
constexpr inline bool operator!=(const TinfoilId &) const = default;
static const TinfoilId Start;
static const TinfoilId Tinfoil;
static const TinfoilId TinfoilForwarder;
static const TinfoilId End;
};
inline constexpr const TinfoilId TinfoilId::Start = { 0x0500000000000000ul };
inline constexpr const TinfoilId TinfoilId::TinfoilForwarder = { 0x0500000000010000ul };
inline constexpr const TinfoilId TinfoilId::Tinfoil = { 0x050000BADDAD0000ul };
inline constexpr const TinfoilId TinfoilId::End = { 0x050000C000000000ul };
inline constexpr bool IsTinfoilId(const ProgramId &program_id) {
return (TinfoilId::Start <= program_id && program_id <= TinfoilId::End) || IsTinfoilId(program_id);
}
inline constexpr bool IsTinfoilId(const TinfoilId &) {
return true;
}
}
Atmosphere/stratosphere/loader/source/ldr_meta.cpp # line 210
C++:
if (loc.program_id == ncm::TinfoilId::Tinfoil) {
if (hos::GetVersion() >= hos::Version_19_0_0) {
FixDebugCapabilityForHbl(static_cast<util::BitPack32 *>(meta->acid_kac), meta->acid->kac_size / sizeof(util::BitPack32));
FixDebugCapabilityForHbl(static_cast<util::BitPack32 *>(meta->aci_kac), meta->aci->kac_size / sizeof(util::BitPack32));
}
}
if (loc.program_id == ncm::TinfoilId::TinfoilForwarder) {
if (hos::GetVersion() >= hos::Version_19_0_0) {
FixDebugCapabilityForHbl(static_cast<util::BitPack32 *>(meta->acid_kac), meta->acid->kac_size / sizeof(util::BitPack32));
FixDebugCapabilityForHbl(static_cast<util::BitPack32 *>(meta->aci_kac), meta->aci->kac_size / sizeof(util::BitPack32));
}
}
This does make both tinfoil and it's internal retroarch forwarder run (it spawns a plain hbmenu application forwarder)