mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-09 11:05:56 +00:00
Replace <experimental/filesystem> includes with <filesystem>
https://bugs.dolphin-emu.org/issues/11770
This commit is contained in:
parent
16afac9da9
commit
fab15edb53
3 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,8 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
#include <Windows.h>
|
||||
#include <experimental/filesystem>
|
||||
namespace fs = std::experimental::filesystem;
|
||||
#include <filesystem>
|
||||
namespace fs = std::filesystem;
|
||||
#define HAS_STD_FILESYSTEM
|
||||
#else
|
||||
#include <cstring>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#include "Core/Boot/Boot.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <experimental/filesystem>
|
||||
namespace fs = std::experimental::filesystem;
|
||||
#include <filesystem>
|
||||
namespace fs = std::filesystem;
|
||||
#define HAS_STD_FILESYSTEM
|
||||
#endif
|
||||
|
||||
|
@ -90,7 +90,7 @@ static std::vector<std::string> ReadM3UFile(const std::string& m3u_path,
|
|||
#ifdef HAS_STD_FILESYSTEM
|
||||
const fs::path path_line = fs::u8path(line);
|
||||
const std::string path_to_add =
|
||||
path_line.is_relative() ? fs::u8path(folder_path).append(path_line).u8string() : line;
|
||||
path_line.is_relative() ? (fs::u8path(folder_path) / path_line).u8string() : line;
|
||||
#else
|
||||
const std::string path_to_add = line.front() != '/' ? folder_path + line : line;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue