Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-2-2013-Decompilation
Path: blob/main/dependencies/windows-uwp/WinRTIncludes.hpp
817 views
1
#pragma once
2
#include <SDL_main.h>
3
4
#include <windows.h>
5
#include <unknwn.h>
6
#include <restrictederrorinfo.h>
7
#include <hstring.h>
8
#include <winrt/base.h>
9
#include <winrt/Windows.Foundation.h>
10
#include <winrt/Windows.Foundation.Collections.h>
11
#include <winrt/Windows.ApplicationModel.Core.h>
12
#include <winrt/Windows.ApplicationModel.Activation.h>
13
#include <winrt/Windows.UI.h>
14
#include <winrt/Windows.UI.Core.h>
15
#include <winrt/Windows.UI.Input.h>
16
#include <winrt/Windows.Devices.Input.h>
17
#include <winrt/Windows.Storage.h>
18
19
inline char *getResourcesPath()
20
{
21
static char resourcePath[256] = { 0 };
22
23
if (strlen(resourcePath) == 0) {
24
auto folder = winrt::Windows::Storage::ApplicationData::Current().LocalFolder();
25
auto path = to_string(folder.Path());
26
27
std::copy(path.begin(), path.end(), resourcePath);
28
}
29
30
return resourcePath;
31
}
32
33
inline uint UAP_GetRetroGamePlatform()
34
{
35
auto touchCaps = winrt::Windows::Devices::Input::TouchCapabilities();
36
return touchCaps.TouchPresent() ? RETRO_MOBILE : RETRO_STANDARD;
37
}
38
39