Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.17 KB

physfs_platform_winrt.cpp

File metadata and controls

41 lines (30 loc) · 1.17 KB
 
Apr 20, 2015
Apr 20, 2015
1
/*
Jul 24, 2017
Jul 24, 2017
2
3
4
5
6
7
8
9
10
11
12
13
* Windows Runtime (WinRT) support routines for PhysicsFS.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file originally written by Martin "T-Bone" Ahrnbom, but was mostly
* merged into physfs_platform_windows.c by Ryan C. Gordon (so please harass
* Ryan about bugs and not Martin).
*/
/* (There used to be instructions on how to make a WinRT project, but at
this point, either CMake will do it for you or you should just drop
PhysicsFS's sources into your existing project. --ryan.) */
Apr 20, 2015
Apr 20, 2015
14
15
16
17
18
19
#define __PHYSICSFS_INTERNAL__
#include "physfs_platforms.h"
#ifdef PHYSFS_PLATFORM_WINRT
Aug 17, 2017
Aug 17, 2017
20
21
22
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS 1
#endif
Jul 24, 2017
Jul 24, 2017
23
#include <windows.h>
Apr 20, 2015
Apr 20, 2015
24
Aug 17, 2017
Aug 17, 2017
25
26
#include "physfs_internal.h"
Jul 24, 2017
Jul 24, 2017
27
const void *__PHYSFS_winrtCalcBaseDir(void)
Apr 20, 2015
Apr 20, 2015
28
{
Jul 24, 2017
Jul 24, 2017
29
30
return Windows::ApplicationModel::Package::Current->InstalledLocation->Path->Data();
} /* __PHYSFS_winrtCalcBaseDir */
Apr 20, 2015
Apr 20, 2015
31
Jul 24, 2017
Jul 24, 2017
32
const void *__PHYSFS_winrtCalcPrefDir(void)
Apr 20, 2015
Apr 20, 2015
33
{
Jul 24, 2017
Jul 24, 2017
34
35
return Windows::Storage::ApplicationData::Current->LocalFolder->Path->Data();
} /* __PHYSFS_winrtCalcBaseDir */
Apr 20, 2015
Apr 20, 2015
36
37
Jul 12, 2017
Jul 12, 2017
38
#endif /* PHYSFS_PLATFORM_WINRT */
Apr 20, 2015
Apr 20, 2015
39
Jul 22, 2017
Jul 22, 2017
40
/* end of physfs_platform_winrt.cpp ... */