mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Change var name to storage_id
This commit is contained in:
parent
dc7171d042
commit
4f79fe212e
@ -20,17 +20,17 @@ Result nsGetApplicationControlData(u8 flag, u64 titleID, NsApplicationControlDat
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns the total storage size from content manager services.
|
* @brief Returns the total storage size from content manager services.
|
||||||
* @param media_id Specified FsStorageId. (Must be FsStorageId_SdCard or 5)
|
* @param storage_id Specified FsStorageId. (Must be FsStorageId_SdCard or 5)
|
||||||
* @param size Pointer to output the total storage size to.
|
* @param size Pointer to output the total storage size to.
|
||||||
*/
|
*/
|
||||||
Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size);
|
Result nsGetTotalSpaceSize(FsStorageId storage_id, u64 *size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns the available storage size from content manager services.
|
* @brief Returns the available storage size from content manager services.
|
||||||
* @param media_id Specified FsStorageId. (Must be FsStorageId_SdCard or 5)
|
* @param storage_id Specified FsStorageId. (Must be FsStorageId_SdCard or 5)
|
||||||
* @param size Pointer to output the free storage size to.
|
* @param size Pointer to output the free storage size to.
|
||||||
*/
|
*/
|
||||||
Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size);
|
Result nsGetFreeSpaceSize(FsStorageId storage_id, u64 *size);
|
||||||
|
|
||||||
Result nsvmInitialize(void);
|
Result nsvmInitialize(void);
|
||||||
void nsvmExit(void);
|
void nsvmExit(void);
|
||||||
|
@ -118,7 +118,7 @@ Result nsGetApplicationControlData(u8 flag, u64 titleID, NsApplicationControlDat
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size)
|
Result nsGetTotalSpaceSize(FsStorageId storage_id, u64 *size)
|
||||||
{
|
{
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
@ -133,7 +133,7 @@ Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size)
|
|||||||
|
|
||||||
raw->magic = SFCI_MAGIC;
|
raw->magic = SFCI_MAGIC;
|
||||||
raw->cmd_id = 47;
|
raw->cmd_id = 47;
|
||||||
raw->media_id = media_id;
|
raw->media_id = storage_id;
|
||||||
|
|
||||||
Result rc = serviceIpcDispatch(&g_nsAppManSrv);
|
Result rc = serviceIpcDispatch(&g_nsAppManSrv);
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size)
|
Result nsGetFreeSpaceSize(FsStorageId storage_id, u64 *size)
|
||||||
{
|
{
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
@ -170,7 +170,7 @@ Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size)
|
|||||||
|
|
||||||
raw->magic = SFCI_MAGIC;
|
raw->magic = SFCI_MAGIC;
|
||||||
raw->cmd_id = 48;
|
raw->cmd_id = 48;
|
||||||
raw->media_id = media_id;
|
raw->media_id = storage_id;
|
||||||
|
|
||||||
Result rc = serviceIpcDispatch(&g_nsAppManSrv);
|
Result rc = serviceIpcDispatch(&g_nsAppManSrv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user