| 1 | #include "filedevice/nin/seadNinHostIOFileDevice.h" |
|---|---|
| 2 | #include "devenv/seadEnvUtil.h" |
| 3 | #include "filedevice/seadFileDeviceMgr.h" |
| 4 | |
| 5 | namespace sead |
| 6 | { |
| 7 | NinHostIOFileDevice::NinHostIOFileDevice() : NinFileDeviceBase("hostio", "hostio") {} |
| 8 | |
| 9 | bool NinHostIOFileDevice::doIsAvailable_() const |
| 10 | { |
| 11 | #ifndef SEAD_DEBUG |
| 12 | return false; |
| 13 | #endif |
| 14 | return FileDeviceMgr::instance()->hasMountedHost(); |
| 15 | } |
| 16 | |
| 17 | bool NinHostIOFileDevice::formatPathForFS_(BufferedSafeString* out, const SafeString& path) const |
| 18 | { |
| 19 | #ifndef SEAD_DEBUG |
| 20 | return false; |
| 21 | #endif |
| 22 | EnvUtil::resolveEnvronmentVariable(out, str: path); |
| 23 | return out->include(str: ":") && isAvailable(); |
| 24 | } |
| 25 | } // namespace sead |
| 26 |