aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Xbox/Sentient/Include/SenClientCultureBackCompat_SenCore.h
blob: df980fb5740f7b17f9431e9c4d7a95f221d009d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once

#include "SenClientCulture.h"

namespace Sentient
{

//enum
//{
//	// Note that these include a terminating nul.
//	SenCulture_DescSizeMax = 80,
//	SenCulture_NameSizeMax = 12,
//};

struct SenCultureInfo
{
	wchar_t name[12]; // e.g. { L"en", L"en-CA", L"en-GB", L"" }
	wchar_t desc[80]; // e.g. L"English (United States)"
	size_t  nameCount;                    // e.g. 1
	const SenCultureInfo *parent;
};

static SenCultureInfo s_defaultculture;

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const wchar_t *SenCultureGetSystemLanguageString()
{
	return L"en";
}

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const wchar_t *SenCultureGetSystemLocaleString()
{
	return L"US";
}

__declspec(deprecated("This function is deprecated, and should not be used"))  
const wchar_t *SenCultureGetSystemCultureString();
//{
//	return L"en-US";
//}

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const SenCultureInfo *SenCultureFind( const wchar_t *name )
{
	return &s_defaultculture;
}

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const SenCultureInfo *SenCultureGetParent( const SenCultureInfo *culture )
{
	return &s_defaultculture;
}

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline HRESULT SenCultureSetCurrent( const wchar_t name[] )
{
	return E_FAIL;
}

__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const SenCultureInfo *SenCultureGetCurrent()
{
	return &s_defaultculture;
}


__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline HRESULT SenCultureSetDefault( const wchar_t name[] )
{
	return E_FAIL;
}


__declspec(deprecated("This function is deprecated, and should not be used"))  
__inline const SenCultureInfo *SenCultureGetDefault()
{
	return &s_defaultculture;
}

}