2019-12-08 22:49:08 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <wut_romfs_dev.h>
|
|
|
|
|
|
|
|
typedef struct WUT_PACKED FileInfos_ {
|
|
|
|
char path[256];
|
|
|
|
char name[256];
|
|
|
|
int32_t source;
|
|
|
|
bool romfsMounted;
|
|
|
|
int openedFiles;
|
|
|
|
} FileInfos;
|
|
|
|
|
|
|
|
#define FILE_INFO_SIZE 300
|
|
|
|
extern FileInfos gFileInfos[FILE_INFO_SIZE];
|
|
|
|
|
|
|
|
void unmountAllRomfs();
|
2020-06-17 13:45:15 +02:00
|
|
|
|
2019-12-08 22:49:08 +01:00
|
|
|
void unmountRomfs(uint32_t id);
|
2020-06-17 13:45:15 +02:00
|
|
|
|
2019-12-08 22:49:08 +01:00
|
|
|
bool mountRomfs(uint32_t id);
|
|
|
|
|
2020-06-17 13:45:15 +02:00
|
|
|
int32_t getRPXInfoForID(uint32_t id, romfs_fileInfo *info);
|