2 * Copyright (C) 2016-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "PlatformWin32.h"
11 #include "platform/Environment.h"
12 #include "win32util.h"
13 #include "windowing/windows/WinSystemWin32DX.h"
15 #include "platform/win32/powermanagement/Win32PowerSyscall.h"
17 CPlatform
* CPlatform::CreateInstance()
19 return new CPlatformWin32();
22 bool CPlatformWin32::InitStageOne()
24 if (!CPlatform::InitStageOne())
27 CEnvironment::setenv("OS", "win32"); // for python scripts that check the OS
29 // enable independent locale for each thread, see https://connect.microsoft.com/VisualStudio/feedback/details/794122
30 CWIN32Util::SetThreadLocalLocale(true);
32 CWinSystemWin32DX::Register();
34 CWin32PowerSyscall::Register();
39 void CPlatformWin32::PlatformSyslog()
41 CWIN32Util::PlatformSyslog();