summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns/pl_u.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-09-03 20:30:29 +0200
committerLiam <byteslice@airmail.cc>2022-09-03 23:32:12 +0200
commitc7a814f10fd927dfcc3591fada7d6732213892b2 (patch)
treecb904fbfe1badf3df1257239a8455e23f544742f /src/core/hle/service/ns/pl_u.h
parentMerge pull request #8843 from Kelebek1/SILENCE_WENCH (diff)
downloadyuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar.gz
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar.bz2
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar.lz
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar.xz
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.tar.zst
yuzu-c7a814f10fd927dfcc3591fada7d6732213892b2.zip
Diffstat (limited to 'src/core/hle/service/ns/pl_u.h')
-rw-r--r--src/core/hle/service/ns/pl_u.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h
deleted file mode 100644
index 07d0ac934..000000000
--- a/src/core/hle/service/ns/pl_u.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <memory>
-#include <vector>
-#include "core/hle/service/service.h"
-
-namespace Service {
-
-namespace FileSystem {
-class FileSystemController;
-} // namespace FileSystem
-
-namespace NS {
-
-enum class FontArchives : u64 {
- Extension = 0x0100000000000810,
- Standard = 0x0100000000000811,
- Korean = 0x0100000000000812,
- ChineseTraditional = 0x0100000000000813,
- ChineseSimple = 0x0100000000000814,
-};
-
-constexpr std::array<std::pair<FontArchives, const char*>, 7> SHARED_FONTS{
- std::make_pair(FontArchives::Standard, "nintendo_udsg-r_std_003.bfttf"),
- std::make_pair(FontArchives::ChineseSimple, "nintendo_udsg-r_org_zh-cn_003.bfttf"),
- std::make_pair(FontArchives::ChineseSimple, "nintendo_udsg-r_ext_zh-cn_003.bfttf"),
- std::make_pair(FontArchives::ChineseTraditional, "nintendo_udjxh-db_zh-tw_003.bfttf"),
- std::make_pair(FontArchives::Korean, "nintendo_udsg-r_ko_003.bfttf"),
- std::make_pair(FontArchives::Extension, "nintendo_ext_003.bfttf"),
- std::make_pair(FontArchives::Extension, "nintendo_ext2_003.bfttf"),
-};
-
-void DecryptSharedFontToTTF(const std::vector<u32>& input, std::vector<u8>& output);
-void EncryptSharedFont(const std::vector<u32>& input, std::vector<u8>& output, std::size_t& offset);
-
-class PL_U final : public ServiceFramework<PL_U> {
-public:
- explicit PL_U(Core::System& system_);
- ~PL_U() override;
-
-private:
- void RequestLoad(Kernel::HLERequestContext& ctx);
- void GetLoadState(Kernel::HLERequestContext& ctx);
- void GetSize(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx);
- void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx);
- void GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx);
-
- struct Impl;
- std::unique_ptr<Impl> impl;
-};
-
-} // namespace NS
-
-} // namespace Service