🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

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