From 4f79fe212e074b63cab0aed53c78fb2a19976a89 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Tue, 5 Jun 2018 18:48:22 -0500 Subject: [PATCH] Change var name to storage_id --- nx/include/switch/services/ns.h | 8 ++++---- nx/source/services/ns.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nx/include/switch/services/ns.h b/nx/include/switch/services/ns.h index 803b9fe9..bf1e6ec0 100644 --- a/nx/include/switch/services/ns.h +++ b/nx/include/switch/services/ns.h @@ -20,17 +20,17 @@ Result nsGetApplicationControlData(u8 flag, u64 titleID, NsApplicationControlDat /** * @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. */ -Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size); +Result nsGetTotalSpaceSize(FsStorageId storage_id, u64 *size); /** * @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. */ -Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size); +Result nsGetFreeSpaceSize(FsStorageId storage_id, u64 *size); Result nsvmInitialize(void); void nsvmExit(void); diff --git a/nx/source/services/ns.c b/nx/source/services/ns.c index bce070c9..b65586f1 100644 --- a/nx/source/services/ns.c +++ b/nx/source/services/ns.c @@ -118,7 +118,7 @@ Result nsGetApplicationControlData(u8 flag, u64 titleID, NsApplicationControlDat return rc; } -Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size) +Result nsGetTotalSpaceSize(FsStorageId storage_id, u64 *size) { IpcCommand c; ipcInitialize(&c); @@ -133,7 +133,7 @@ Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size) raw->magic = SFCI_MAGIC; raw->cmd_id = 47; - raw->media_id = media_id; + raw->media_id = storage_id; Result rc = serviceIpcDispatch(&g_nsAppManSrv); @@ -155,7 +155,7 @@ Result nsGetTotalSpaceSize(FsStorageId media_id, u64 *size) return rc; } -Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size) +Result nsGetFreeSpaceSize(FsStorageId storage_id, u64 *size) { IpcCommand c; ipcInitialize(&c); @@ -170,7 +170,7 @@ Result nsGetFreeSpaceSize(FsStorageId media_id, u64 *size) raw->magic = SFCI_MAGIC; raw->cmd_id = 48; - raw->media_id = media_id; + raw->media_id = storage_id; Result rc = serviceIpcDispatch(&g_nsAppManSrv);