Reformat lambda thingy

This commit is contained in:
igor725 2024-05-03 12:49:56 +03:00
parent 8c47717fec
commit be8d3a8656
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -40,11 +40,14 @@ EXPORT SYSV_ABI int sceNpTrophyCreateContext(SceNpTrophyContext* context, int32_
if (ctx.created) return Err::NpTrophy::ALREADY_EXISTS;
// static std::once_flag init;
// std::call_once(init, []() {
// ITrophies::trp_ent_cb ent = {.func = [](ITrophies::trp_ent_cb::data_t* data) {
// LOG_USE_MODULE(libSceNpTrophy);
// LOG_ERR(L"Trophy! %S: %S (id:%d)", data->name.c_str(), data->detail.c_str(), data->id);
// return false; // Do not cancel this callback
// }};
// ITrophies::trp_ent_cb ent = {
// .func =
// [](ITrophies::trp_ent_cb::data_t* data) {
// LOG_USE_MODULE(libSceNpTrophy);
// LOG_ERR(L"Trophy! %S: %S (id:%d)", data->name.c_str(), data->detail.c_str(), data->id);
// return false; // Do not cancel this callback
// },
// };
// accessTrophies().parseTRP(nullptr, &ent);
// });
ctx.created = true;