void SetResource(
int index,
void * content,
u32 fileSize,
bool bFree = true
);
| Name | Description | |
|---|---|---|
index |
The resource file index number. | |
| content | Resource file contents. | |
| fileSize | Resource file size. | |
| bFree | Leaves deletion of memory for content up to the library. |
Sets the resource file.
Specify the index when the path was obtained in index.
If true is specified in bFree, the library frees the memory pointed to by content using Layout::FreeMemory(). Memory for content must be allocated using Layout::AllocMemory().
CONFIDENTIAL