mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 03:12:45 +01:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace Service::Set {
|
|
|
|
/// This is "nn::settings::LanguageCode", which is a NUL-terminated string stored in a u64.
|
|
enum class LanguageCode : u64 {
|
|
JA = 0x000000000000616A,
|
|
EN_US = 0x00000053552D6E65,
|
|
FR = 0x0000000000007266,
|
|
DE = 0x0000000000006564,
|
|
IT = 0x0000000000007469,
|
|
ES = 0x0000000000007365,
|
|
ZH_CN = 0x0000004E432D687A,
|
|
KO = 0x0000000000006F6B,
|
|
NL = 0x0000000000006C6E,
|
|
PT = 0x0000000000007470,
|
|
RU = 0x0000000000007572,
|
|
ZH_TW = 0x00000057542D687A,
|
|
EN_GB = 0x00000042472D6E65,
|
|
FR_CA = 0x00000041432D7266,
|
|
ES_419 = 0x00003931342D7365,
|
|
ZH_HANS = 0x00736E61482D687A,
|
|
ZH_HANT = 0x00746E61482D687A,
|
|
PT_BR = 0x00000052422D7470,
|
|
};
|
|
LanguageCode GetLanguageCodeFromIndex(std::size_t idx);
|
|
|
|
class SET final : public ServiceFramework<SET> {
|
|
public:
|
|
explicit SET(Core::System& system_);
|
|
~SET() override;
|
|
|
|
private:
|
|
void GetLanguageCode(Kernel::HLERequestContext& ctx);
|
|
void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
|
|
void MakeLanguageCode(Kernel::HLERequestContext& ctx);
|
|
void GetAvailableLanguageCodes2(Kernel::HLERequestContext& ctx);
|
|
void GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx);
|
|
void GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx);
|
|
void GetQuestFlag(Kernel::HLERequestContext& ctx);
|
|
void GetRegionCode(Kernel::HLERequestContext& ctx);
|
|
void GetKeyCodeMap(Kernel::HLERequestContext& ctx);
|
|
void GetKeyCodeMap2(Kernel::HLERequestContext& ctx);
|
|
};
|
|
|
|
} // namespace Service::Set
|