kern: make GetTargetFirmware a compile-time constant when not building for Switch

This commit is contained in:
fincs authored and SciresM committed 2020-08-18 15:17:40 -07:00
1 parent 3c85e37667
commit b917ea283e
4 files changed
+32 -3

No files matched your search

@@ -22,6 +22,12 @@ namespace ams::kern {
constexpr size_t PageSize = 4_KB;
#ifdef ATMOSPHERE_BOARD_NINTENDO_NX
ams::TargetFirmware GetTargetFirmware();
#else
consteval ALWAYS_INLINE ams::TargetFirmware GetTargetFirmware() {
return ams::TargetFirmware_Current;
}
#endif
}