diff --git a/libexosphere/include/exosphere/fuse.hpp b/libexosphere/include/exosphere/fuse.hpp index 7e841ff3..2dece286 100644 --- a/libexosphere/include/exosphere/fuse.hpp +++ b/libexosphere/include/exosphere/fuse.hpp @@ -113,6 +113,7 @@ namespace ams::fuse { SocType GetSocType(); int GetExpectedFuseVersion(TargetFirmware target_fw); + int GetFuseVersion(); bool HasRcmVulnerabilityPatch(); bool IsOdmProductionMode(); diff --git a/libexosphere/source/fuse/fuse_api.cpp b/libexosphere/source/fuse/fuse_api.cpp index 963a7cad..fba616e9 100644 --- a/libexosphere/source/fuse/fuse_api.cpp +++ b/libexosphere/source/fuse/fuse_api.cpp @@ -394,6 +394,10 @@ namespace ams::fuse { return GetExpectedFuseVersionImpl(target_fw); } + int GetFuseVersion() { + return util::PopCount(GetCommonOdmWord(7)); + } + bool HasRcmVulnerabilityPatch() { /* Only check for RCM bug patch once, and cache our result. */ if (!g_checked_for_rcm_bug_patch) {