diff options
author | Liam <byteslice@airmail.cc> | 2023-09-14 04:06:33 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-09-14 15:14:08 +0200 |
commit | 9d7eebde7b06f3a921707dfb7ebdee22ab9d257e (patch) | |
tree | 2cbb987de3e7e6640f0ff4b5ecdf4096eb8961a5 /src/core/hle/service/ngct/ngct.cpp | |
parent | Merge pull request #11385 from liamwhite/acceptcancel (diff) | |
download | yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar.gz yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar.bz2 yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar.lz yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar.xz yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.tar.zst yuzu-9d7eebde7b06f3a921707dfb7ebdee22ab9d257e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/ngct/ngct.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/core/hle/service/ngct/ngct.cpp b/src/core/hle/service/ngct/ngct.cpp deleted file mode 100644 index 493c80ed2..000000000 --- a/src/core/hle/service/ngct/ngct.cpp +++ /dev/null @@ -1,62 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "common/string_util.h" -#include "core/core.h" -#include "core/hle/service/ipc_helpers.h" -#include "core/hle/service/ngct/ngct.h" -#include "core/hle/service/server_manager.h" -#include "core/hle/service/service.h" - -namespace Service::NGCT { - -class IService final : public ServiceFramework<IService> { -public: - explicit IService(Core::System& system_) : ServiceFramework{system_, "ngct:u"} { - // clang-format off - static const FunctionInfo functions[] = { - {0, &IService::Match, "Match"}, - {1, &IService::Filter, "Filter"}, - }; - // clang-format on - - RegisterHandlers(functions); - } - -private: - void Match(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(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); - - // Return the same string since we don't censor anything - ctx.WriteBuffer(buffer); - - IPC::ResponseBuilder rb{ctx, 2}; - rb.Push(ResultSuccess); - } -}; - -void LoopProcess(Core::System& system) { - auto server_manager = std::make_unique<ServerManager>(system); - - server_manager->RegisterNamedService("ngct:u", std::make_shared<IService>(system)); - ServerManager::RunServer(std::move(server_manager)); -} - -} // namespace Service::NGCT |