diff --git a/stratosphere/loader/source/ldr_rei.cpp b/stratosphere/loader/source/ldr_rei.cpp index b4e2a2f94..e39ff0a2c 100644 --- a/stratosphere/loader/source/ldr_rei.cpp +++ b/stratosphere/loader/source/ldr_rei.cpp @@ -1,12 +1,22 @@ #include #include -#include -#include #include #include "ldr_rei.hpp" +#include "ldr_content_management.hpp" +#include +#include +#include +#include +#include "ldr_registration.hpp" +#include "ldr_hid.hpp" +#include "ldr_npdm.hpp" + +#include "ini.h" + + u64 HbOverrideTid = 0x010000000000100D; Result RNXService::GetReiNXVersion(Out maj, Out min) { - // PASS IN 2 and 4 to trick reinx appls. This is to trick apps into working with ams + // PASS IN 2 and 4 to trick reinx applications. This is to trick apps into working with ams *maj.GetPointer() = 2; *min.GetPointer() = 4; return 0; @@ -15,5 +25,8 @@ Result RNXService::GetReiNXVersion(Out maj, Out min) { Result RNXService::SetHbTidForDelta(u64 tid) { // Hardcode the tid HbOverrideTid = tid; - return 0; + // Then mount the nsp + ContentManagement::TryMountHblNspOnSd(); + ContentManagement::ShouldOverrideContentsWithSD(tid); + return tid; }