mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-11 23:41:00 -10:00
If a config directory did not exist, the ini file was not saved at all. Only implemented for targets that support `std::filesystem` or `std::experimental::filesystem`. These are all the targets except nxdk and iOS (only supported on iOS 13+).
25 lines
766 B
C++
25 lines
766 B
C++
#pragma once
|
|
|
|
#if defined(__APPLE__)
|
|
#include <Availability.h>
|
|
#if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500) \
|
|
|| (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000)
|
|
#define DVL_NO_FILESYSTEM
|
|
#endif
|
|
#elif defined(NXDK) || (defined(_MSVC_LANG) && _MSVC_LANG < 201703L)
|
|
#define DVL_NO_FILESYSTEM
|
|
#endif
|
|
|
|
#ifndef DVL_NO_FILESYSTEM
|
|
#if defined(__has_include)
|
|
#if __has_include(<filesystem>)
|
|
#define DVL_HAS_FILESYSTEM
|
|
#include <filesystem> // IWYU pragma: export
|
|
#elif __has_include(<experimental/filesystem>)
|
|
#define DVL_HAS_FILESYSTEM
|
|
#include <experimental/filesystem> // IWYU pragma: export
|
|
#define filesystem experimental::filesystem
|
|
#endif
|
|
#endif
|
|
#endif
|