diff options
author | bunnei <bunneidev@gmail.com> | 2021-09-17 19:58:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 19:58:55 +0200 |
commit | d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0 (patch) | |
tree | 84b5e1d66ac5ec4eda1e63170b26a4d87622c004 | |
parent | Merge pull request #7011 from ameerj/vk-validation-0x0 (diff) | |
parent | ngct: Stub Match (diff) | |
download | yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar.gz yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar.bz2 yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar.lz yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar.xz yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.tar.zst yuzu-d4ee94165fc6aeae7a1d4e6a13b5123d3dd2f0c0.zip |
-rw-r--r-- | src/core/hle/service/ngct/ngct.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/ngct/ngct.cpp b/src/core/hle/service/ngct/ngct.cpp index deb3abb28..8ec7d5266 100644 --- a/src/core/hle/service/ngct/ngct.cpp +++ b/src/core/hle/service/ngct/ngct.cpp @@ -15,7 +15,7 @@ public: explicit IService(Core::System& system_) : ServiceFramework{system_, "ngct:u"} { // clang-format off static const FunctionInfo functions[] = { - {0, nullptr, "Match"}, + {0, &IService::Match, "Match"}, {1, &IService::Filter, "Filter"}, }; // clang-format on @@ -24,6 +24,19 @@ public: } 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) { const auto buffer = ctx.ReadBuffer(); const auto text = Common::StringFromFixedZeroTerminatedBuffer( |