mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-18 11:30:59 +01:00
Merge pull request #7015 from german77/NotGoodForTerra
ngct: Stub Match
This commit is contained in:
commit
d4ee94165f
1 changed files with 14 additions and 1 deletions
|
@ -15,7 +15,7 @@ public:
|
||||||
explicit IService(Core::System& system_) : ServiceFramework{system_, "ngct:u"} {
|
explicit IService(Core::System& system_) : ServiceFramework{system_, "ngct:u"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "Match"},
|
{0, &IService::Match, "Match"},
|
||||||
{1, &IService::Filter, "Filter"},
|
{1, &IService::Filter, "Filter"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
@ -24,6 +24,19 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void Match(Kernel::HLERequestContext& ctx) {
|
||||||
|
const auto buffer = ctx.ReadBuffer();
|
||||||
|
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
|
||||||
|
reinterpret_cast<const char*>(buffer.data()), buffer.size());
|
||||||
|
|
||||||
|
LOG_WARNING(Service_NGCT, "(STUBBED) called, text={}", text);
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
// Return false since we don't censor anything
|
||||||
|
rb.Push(false);
|
||||||
|
}
|
||||||
|
|
||||||
void Filter(Kernel::HLERequestContext& ctx) {
|
void Filter(Kernel::HLERequestContext& ctx) {
|
||||||
const auto buffer = ctx.ReadBuffer();
|
const auto buffer = ctx.ReadBuffer();
|
||||||
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
|
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
|
||||||
|
|
Loading…
Reference in a new issue