author Ryan C. Gordon <>
Sun, 17 May 2020 01:41:52 -0400
changeset 1691 c66c9326b05d
parent 1590 5aa450209e6a
permissions -rw-r--r--
7z: Make error handling a little more robust.

 * 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.) */

#include "physfs_platforms.h"


#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#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 */


/* end of physfs_platform_winrt.cpp ... */