nn::fs::GetRomRequiredMemorySize Functions32 GetRomRequiredMemorySize( size_t maxFile, size_t maxDirectory, bool useCache = true );
| Name | Description | |
|---|---|---|
| in | maxFile | The maximum number of files that can be opened simultaneously. |
| in | maxDirectory | The maximum number of directories that can be opened simultaneously. |
| in | useCache | Set to true to enable caching of metadata to memory, or false to disable metadata caching. |
Gets the size of memory needed to mount a ROM archive.
This function calculates and returns the memory size needed to mount a ROM archive that accesses a ROMFS generated at build time. The returned memory size allows only the number of files specified by maxFile and the number of directories specified by maxDirectory to be opened simultaneously. By setting the useCache argument equal to true, this size includes the amount of memory required to cache ROMFS metadata in memory.
| Series | SDK version | Return Value Specification |
|---|---|---|
| CTR-SDK 1.X | 1.1 and earlier | A value of 0 or lower is returned when an error occurs. |
| 1.2 or later | An error will cause a transition to the error display screen. (Invalid values are not returned.) | |
| CTR-SDK 2.X | 2.0 and earlier | A value of 0 or lower is returned when an error occurs. |
| 2.1 or later | An error will cause a transition to the error display screen. (Invalid values are not returned.) |
CONFIDENTIAL