/
PlatformWin10.cpp
50 lines (37 loc) · 1.06 KB
/
PlatformWin10.cpp
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
/*
* Copyright (C) 2016-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#include "PlatformWin10.h"
#include "filesystem/SpecialProtocol.h"
#include "platform/Environment.h"
#include "win32util.h"
#include "windowing/win10/WinSystemWin10DX.h"
#include "platform/win10/powermanagement/Win10PowerSyscall.h"
#include <stdlib.h>
CPlatform* CPlatform::CreateInstance()
{
return new CPlatformWin10();
}
bool CPlatformWin10::InitStageOne()
{
if (!CPlatform::InitStageOne())
return false;
CEnvironment::setenv("OS", "win10"); // for python scripts that check the OS
// enable independent locale for each thread, see https://connect.microsoft.com/VisualStudio/feedback/details/794122
CWIN32Util::SetThreadLocalLocale(true);
CWinSystemWin10DX::Register();
CPowerSyscall::Register();
return true;
}
void CPlatformWin10::PlatformSyslog()
{
CWIN32Util::PlatformSyslog();
}
bool CPlatformWin10::SupportsUserInstalledBinaryAddons()
{
return false;
}