[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / platform / win32 / PlatformWin32.cpp
blob61b8f88930a354967910cb2924aa4dc21f2f38da
1 /*
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.
7 */
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())
25 return false;
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();
36 return true;
39 void CPlatformWin32::PlatformSyslog()
41 CWIN32Util::PlatformSyslog();