2018-01-19 15:44:58 -05:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::Set {
|
2018-01-19 15:44:58 -05:00
|
|
|
|
2018-04-28 20:29:33 -04:00
|
|
|
/// 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,
|
|
|
|
};
|
2018-08-03 11:02:55 -04:00
|
|
|
LanguageCode GetLanguageCodeFromIndex(size_t idx);
|
2018-04-28 20:29:33 -04:00
|
|
|
|
2018-01-19 15:44:58 -05:00
|
|
|
class SET final : public ServiceFramework<SET> {
|
|
|
|
public:
|
2018-03-02 03:49:35 -05:00
|
|
|
explicit SET();
|
2018-01-19 15:44:58 -05:00
|
|
|
~SET() = default;
|
|
|
|
|
|
|
|
private:
|
2018-08-03 11:02:55 -04:00
|
|
|
void GetLanguageCode(Kernel::HLERequestContext& ctx);
|
2018-01-19 15:44:58 -05:00
|
|
|
void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
|
2018-08-26 01:43:17 -04:00
|
|
|
void GetAvailableLanguageCodes2(Kernel::HLERequestContext& ctx);
|
2018-07-23 00:06:29 -04:00
|
|
|
void GetAvailableLanguageCodeCount(Kernel::HLERequestContext& ctx);
|
2018-08-26 01:43:17 -04:00
|
|
|
void GetAvailableLanguageCodeCount2(Kernel::HLERequestContext& ctx);
|
2018-01-19 15:44:58 -05:00
|
|
|
};
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::Set
|