diff options
| author | 2018-08-16 17:03:31 -0400 | |
|---|---|---|
| committer | 2018-08-23 11:52:44 -0400 | |
| commit | 410062031b0c29d63abb21e1b9ce70b4b700ae8f (patch) | |
| tree | d8e1c50fa004222b72d2b86c6522fc9fc081b3a5 /src | |
| parent | loader: Add new NAX-specific errors and messages (diff) | |
| download | yuzu-410062031b0c29d63abb21e1b9ce70b4b700ae8f.tar.gz yuzu-410062031b0c29d63abb21e1b9ce70b4b700ae8f.tar.xz yuzu-410062031b0c29d63abb21e1b9ce70b4b700ae8f.zip | |
filesystem: Add logging to registration getters
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 6f9c64263..1a318b233 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -305,17 +305,38 @@ ResultVal<FileSys::VirtualDir> OpenSDMC() { | |||
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | std::shared_ptr<FileSys::RegisteredCache> GetSystemNANDContents() { | 307 | std::shared_ptr<FileSys::RegisteredCache> GetSystemNANDContents() { |
| 308 | LOG_TRACE(Service_FS, "Opening System NAND Contents"); | ||
| 309 | |||
| 310 | if (bis_factory == nullptr) | ||
| 311 | return nullptr; | ||
| 312 | |||
| 308 | return bis_factory->GetSystemNANDContents(); | 313 | return bis_factory->GetSystemNANDContents(); |
| 309 | } | 314 | } |
| 310 | 315 | ||
| 311 | std::shared_ptr<FileSys::RegisteredCache> GetUserNANDContents() { | 316 | std::shared_ptr<FileSys::RegisteredCache> GetUserNANDContents() { |
| 317 | LOG_TRACE(Service_FS, "Opening User NAND Contents"); | ||
| 318 | |||
| 319 | if (bis_factory == nullptr) | ||
| 320 | return nullptr; | ||
| 321 | |||
| 312 | return bis_factory->GetUserNANDContents(); | 322 | return bis_factory->GetUserNANDContents(); |
| 313 | } | 323 | } |
| 314 | 324 | ||
| 315 | void RegisterFileSystems(const FileSys::VirtualFilesystem& vfs) { | 325 | std::shared_ptr<FileSys::RegisteredCache> GetSDMCContents() { |
| 316 | romfs_factory = nullptr; | 326 | LOG_TRACE(Service_FS, "Opening SDMC Contents"); |
| 317 | save_data_factory = nullptr; | 327 | |
| 318 | sdmc_factory = nullptr; | 328 | if (sdmc_factory == nullptr) |
| 329 | return nullptr; | ||
| 330 | |||
| 331 | return sdmc_factory->GetSDMCContents(); | ||
| 332 | } | ||
| 333 | |||
| 334 | void CreateFactories(const FileSys::VirtualFilesystem& vfs, bool overwrite) { | ||
| 335 | if (overwrite) { | ||
| 336 | bis_factory = nullptr; | ||
| 337 | save_data_factory = nullptr; | ||
| 338 | sdmc_factory = nullptr; | ||
| 339 | } | ||
| 319 | 340 | ||
| 320 | auto nand_directory = vfs->OpenDirectory(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir), | 341 | auto nand_directory = vfs->OpenDirectory(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir), |
| 321 | FileSys::Mode::ReadWrite); | 342 | FileSys::Mode::ReadWrite); |