2018-05-15 13:57:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-21 07:42:46 +01:00
|
|
|
#ifndef __FSEXT_H__
|
|
|
|
#define __FSEXT_H__
|
|
|
|
|
2018-05-15 13:57:40 +01:00
|
|
|
#include <switch/types.h>
|
|
|
|
#include <switch/services/fs.h>
|
|
|
|
|
|
|
|
// IFileSystemProxy
|
2018-05-16 17:21:13 +01:00
|
|
|
Result fsOpenGameCardStorage(FsStorage* out, u32 handle, u32 partition);
|
2018-06-21 07:42:46 +01:00
|
|
|
Result fsOpenGameCardFileSystem(FsFileSystem* out, u32 handle, u32 partition);
|
2018-05-15 13:57:40 +01:00
|
|
|
|
|
|
|
// IDeviceOperator
|
|
|
|
Result fsDeviceOperatorIsGameCardInserted(FsDeviceOperator* d, bool* out);
|
|
|
|
Result fsDeviceOperatorGetGameCardHandle(FsDeviceOperator* d, u32* out);
|
2018-05-15 17:31:46 +01:00
|
|
|
Result fsDeviceOperatorUpdatePartitionInfo(FsDeviceOperator* d, u32 handle, u32* out_title_version, u64* out_title_id);
|
2018-05-15 13:57:40 +01:00
|
|
|
|
|
|
|
// FsStorage
|
2018-06-21 07:42:46 +01:00
|
|
|
Result fsStorageGetSize(FsStorage* s, u64* out);
|
|
|
|
|
|
|
|
#endif
|