es: Populate/synthesize tickets on construction

This commit is contained in:
Zach Hilman 2019-04-17 11:29:21 -04:00
parent f8718ae779
commit d9ef20e5a5
3 changed files with 17 additions and 15 deletions

View file

@ -56,6 +56,9 @@ public:
};
// clang-format on
RegisterHandlers(functions);
keys.PopulateTickets();
keys.SynthesizeTickets();
}
private:
@ -125,7 +128,6 @@ private:
void CountCommonTicket(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_ETicket, "called");
keys.PopulateTickets();
const auto count = keys.GetCommonTickets().size();
IPC::ResponseBuilder rb{ctx, 3};
@ -136,7 +138,6 @@ private:
void CountPersonalizedTicket(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_ETicket, "called");
keys.PopulateTickets();
const auto count = keys.GetPersonalizedTickets().size();
IPC::ResponseBuilder rb{ctx, 3};