Deprecated FileSystemAdapter::getHomeFolder().

This commit is contained in:
2025-03-28 11:44:15 +01:00
parent e35f5a35f8
commit d7f968db3a
3 changed files with 15 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#include "./stacked.hpp"
#include <algorithm>
#include "../detect.hpp"
namespace mijin
{
@@ -35,7 +36,14 @@ fs::path StackedFileSystemAdapter::getHomeFolder()
if (adapters_.empty()) {
return fs::path();
}
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
#pragma warning(push)
#pragma warning(disable : 4996) // yeah, we're using a deprecated function here, in order to implement another deprecated function ¯\_(ツ)_/¯
#endif
return adapters_.front()->getHomeFolder();
#if MIJIN_COMPILER == MIJIN_COMPILER_MSVC
#pragma warning(pop)
#endif
}
std::vector<FileInfo> StackedFileSystemAdapter::listFiles(const fs::path& folder)