diff options
author | Subv <subv2112@gmail.com> | 2018-03-20 03:17:15 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-03-20 03:17:15 +0100 |
commit | c4ca802b9dc7f0d3f3aed5aa937240bf85370c15 (patch) | |
tree | 12199ad7acfb7b1b886eda7ad01d968e10c9051c /src/core/hle/service/filesystem/filesystem.cpp | |
parent | Merge pull request #251 from Subv/tic_tsc (diff) | |
download | yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar.gz yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar.bz2 yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar.lz yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar.xz yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.tar.zst yuzu-c4ca802b9dc7f0d3f3aed5aa937240bf85370c15.zip |
Diffstat (limited to 'src/core/hle/service/filesystem/filesystem.cpp')
-rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index ef05955b9..945832e98 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -6,6 +6,7 @@ #include "common/file_util.h" #include "core/file_sys/filesystem.h" #include "core/file_sys/savedata_factory.h" +#include "core/file_sys/sdmc_factory.h" #include "core/hle/service/filesystem/filesystem.h" #include "core/hle/service/filesystem/fsp_srv.h" @@ -60,9 +61,13 @@ void RegisterFileSystems() { filesystem_map.clear(); std::string nand_directory = FileUtil::GetUserPath(D_NAND_IDX); + std::string sd_directory = FileUtil::GetUserPath(D_SDMC_IDX); auto savedata = std::make_unique<FileSys::SaveData_Factory>(std::move(nand_directory)); RegisterFileSystem(std::move(savedata), Type::SaveData); + + auto sdcard = std::make_unique<FileSys::SDMC_Factory>(std::move(sd_directory)); + RegisterFileSystem(std::move(sdcard), Type::SDMC); } void InstallInterfaces(SM::ServiceManager& service_manager) { |