the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1/********************************************************
2* *
3* Copyright (C) Microsoft. All rights reserved. *
4* *
5********************************************************/
6
7// Sentient Client Culture API
8//
9// Include this to get access to all Culture-related Sentient features.
10
11#pragma once
12#include "SenClientTypes.h"
13
14namespace Sentient
15{
16 //=========================//
17 // //
18 // Culture Functions //
19 // //
20 //=========================//
21
22 /// @brief Set the current culture to the one specified, if possible.
23 ///
24 /// @param[in] dwLanguage
25 /// the DWORD id as defined in xconfig.h (e.g. XC_LANGUAGE_ENGLISH) for the language to use
26
27 /// @param[in] dwLocale
28 /// the DWORD id as defined in xconfig.h (e.g. XC_LOCALE_GREAT_BRITAIN) for the region to use
29 ///
30 /// @return Check SUCCEEDED( hresult ) or FAILED( hresult ) to determine success. Specific values include:
31 /// SENTIENT_E_NOT_INITIALIZED: You did not call SentientInitialize() first.
32 /// E_FAIL: Failed to find the given culture.
33 /// S_OK: Current culture set successfully.
34 ///
35 /// @details Set the current culture to the one specified, if possible (if not english will be used).
36 /// This should only be called during title launch if it is determined that the console is set to a lanuage unsupported by the title.
37 /// This method should only be called once, right after calling SentientInitialize()
38 /// This is the culture that will be used when any string routine is called.
39 /// By default, this is set to the system culture & region.
40 ///
41 HRESULT SetCurrentCulture(
42 __in DWORD dwLanguage,
43 __in DWORD dwLocale
44 );
45
46 /// @brief Set the current culture to English (no region)
47 ///
48 /// @return Check SUCCEEDED( hresult ) or FAILED( hresult ) to determine success. Specific values include:
49 /// SENTIENT_E_NOT_INITIALIZED: You did not call SentientInitialize() first.
50 /// E_FAIL: Failed to find the given culture.
51 /// S_OK: Current culture set successfully.
52 ///
53 /// @details Set the current culture English.
54 /// This should only be called during title launch if it is determined that the console is set to a lanuage unsupported by the title.
55 /// This method should only be called once, right after calling SentientInitialize()
56 /// This is the culture that will be used when any string routine is called.
57 /// By default, Sentient uses the console's culture & region.
58 ///
59 __inline HRESULT SetCurrentCultureEnglish() { return SetCurrentCulture(XC_LANGUAGE_ENGLISH, 0); }
60
61} // namespace Sentient