diff options
| author | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-15 16:22:09 +0500 |
| commit | 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 (patch) | |
| tree | 05049955847504808d6bed2bb7b155f8b03807bb /deps/src/physfs/physfs_platform_winrt.cpp | |
| parent | 02294547dcde0d4ad76e229106702261e9f10a51 (diff) | |
| download | voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.tar.bz2 voxelius-3bf42c6ff3805a0d42bbc661794a95ff31bedc26.zip | |
Add whatever I was working on for the last month
Diffstat (limited to 'deps/src/physfs/physfs_platform_winrt.cpp')
| -rw-r--r-- | deps/src/physfs/physfs_platform_winrt.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/deps/src/physfs/physfs_platform_winrt.cpp b/deps/src/physfs/physfs_platform_winrt.cpp new file mode 100644 index 0000000..1669c2f --- /dev/null +++ b/deps/src/physfs/physfs_platform_winrt.cpp @@ -0,0 +1,41 @@ +/*
+ * 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.) */
+
+#define __PHYSICSFS_INTERNAL__
+#include "physfs_platforms.h"
+
+#ifdef PHYSFS_PLATFORM_WINRT
+
+#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
+#define _CRT_SECURE_NO_WARNINGS 1
+#endif
+#include <windows.h>
+
+#include "physfs_internal.h"
+
+const void *__PHYSFS_winrtCalcBaseDir(void)
+{
+ return Windows::ApplicationModel::Package::Current->InstalledLocation->Path->Data();
+} /* __PHYSFS_winrtCalcBaseDir */
+
+const void *__PHYSFS_winrtCalcPrefDir(void)
+{
+ return Windows::Storage::ApplicationData::Current->LocalFolder->Path->Data();
+} /* __PHYSFS_winrtCalcBaseDir */
+
+
+#endif /* PHYSFS_PLATFORM_WINRT */
+
+/* end of physfs_platform_winrt.cpp ... */
+
|
