mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
UWP: enable SYSPROP_LANGREGION
This commit is contained in:
parent
7252999921
commit
792d9e30ba
@ -42,6 +42,7 @@ using namespace Concurrency;
|
||||
// UGLY!
|
||||
PPSSPP_UWPMain *g_main;
|
||||
extern WindowsAudioBackend *winAudioBackend;
|
||||
std::string langRegion;
|
||||
// TODO: Use Microsoft::WRL::ComPtr<> for D3D11 objects?
|
||||
// TODO: See https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/WindowsAudioSession for WASAPI with UWP
|
||||
// TODO: Low latency input: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/LowLatencyInput/cpp
|
||||
@ -76,7 +77,6 @@ PPSSPP_UWPMain::PPSSPP_UWPMain(App ^app, const std::shared_ptr<DX::DeviceResourc
|
||||
|
||||
wchar_t lcCountry[256];
|
||||
|
||||
std::string langRegion;
|
||||
if (0 != GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, lcCountry, 256)) {
|
||||
langRegion = ConvertWStringToUTF8(lcCountry);
|
||||
for (size_t i = 0; i < langRegion.size(); i++) {
|
||||
@ -345,7 +345,7 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
case SYSPROP_NAME:
|
||||
return "Windows 10 Universal";
|
||||
case SYSPROP_LANGREGION:
|
||||
return "en_US"; // TODO UWP
|
||||
return langRegion;
|
||||
case SYSPROP_CLIPBOARD_TEXT:
|
||||
/* TODO: Need to either change this API or do this on a thread in an ugly fashion.
|
||||
DataPackageView ^view = Clipboard::GetContent();
|
||||
|
Loading…
Reference in New Issue
Block a user