- updated libhaze to 81154c1. - increase ftpsrv stack size as it would crash when modifying custom mounts. - fix warning for unused log data in haze. - fix eof read for nsp/xci source by instead returning 0 for bytes read, rather than error. - add support for lstat the root of a mount. - handle zero size reads when reading games via devoptab.
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include "fs.hpp"
|
|
#include "yati/source/base.hpp"
|
|
#include "location.hpp"
|
|
|
|
#include <switch.h>
|
|
#include <memory>
|
|
|
|
namespace sphaira::devoptab {
|
|
|
|
Result MountSaveSystem(u64 id, fs::FsPath& out_path);
|
|
Result MountZip(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountNsp(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountXci(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountXciSource(const std::shared_ptr<sphaira::yati::source::Base>& source, s64 size, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountNca(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountNcaNcm(NcmContentStorage* cs, const NcmContentId* id, fs::FsPath& out_path);
|
|
Result MountBfsar(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
Result MountNro(fs::Fs* fs, const fs::FsPath& path, fs::FsPath& out_path);
|
|
|
|
Result MountVfsAll();
|
|
Result MountWebdavAll();
|
|
Result MountHttpAll();
|
|
Result MountFtpAll();
|
|
Result MountSftpAll();
|
|
Result MountNfsAll();
|
|
Result MountSmb2All();
|
|
Result MountFatfsAll();
|
|
Result MountGameAll();
|
|
Result MountInternalMounts();
|
|
|
|
Result GetNetworkDevices(location::StdioEntries& out);
|
|
void UmountAllNeworkDevices();
|
|
void UmountNeworkDevice(const fs::FsPath& mount);
|
|
|
|
// manually set the array so that we can avoid nullptr access.
|
|
// SEE: https://github.com/devkitPro/newlib/issues/35
|
|
void FixDkpBug();
|
|
|
|
void DisplayDevoptabSideBar();
|
|
|
|
} // namespace sphaira::devoptab
|