MCPcopy Create free account
hub / github.com/devkitPro/libctru / _archiveInit

Function _archiveInit

libctru/source/archive_dev.c:260–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258extern char** __system_argv;
259
260static void _archiveInit(void)
261{
262 u32 total = sizeof(archive_devices) / sizeof(archive_fsdevice);
263 if (!archive_initialized)
264 {
265 memset(archive_devices, 0, sizeof(archive_devices));
266
267 for (u32 i=0; i<total; i++)
268 {
269 memcpy(&archive_devices[i].device, &archive_devoptab, sizeof(archive_devoptab));
270 archive_devices[i].device.name = archive_devices[i].name;
271 archive_devices[i].device.deviceData = &archive_devices[i];
272 archive_devices[i].id = i;
273 }
274
275 archive_device_cwd = -1;
276 archive_initialized = true;
277 }
278}
279
280static int _archiveMountDevice(FS_Archive archive,
281 const char *deviceName,

Callers 2

_archiveMountDeviceFunction · 0.85
archiveMountSdmcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected