29 lines
562 B
C++
29 lines
562 B
C++
#pragma once
|
|
|
|
#include <coreinit/mcp.h>
|
|
#include <cstdint>
|
|
|
|
typedef struct WUT_PACKED FileInfos_ {
|
|
char path[256];
|
|
char filename[256];
|
|
char shortname[64];
|
|
char longname[64];
|
|
char author[64];
|
|
int32_t source;
|
|
uint32_t lowerTitleID;
|
|
bool romfsMounted;
|
|
int openedFiles;
|
|
MCPTitleListType titleInfo;
|
|
} FileInfos;
|
|
|
|
#define FILE_INFO_SIZE 300
|
|
extern FileInfos gFileInfos[FILE_INFO_SIZE];
|
|
|
|
int32_t getIDByLowerTitleID(uint32_t lowerTitleID);
|
|
|
|
void unmountRomfs(uint32_t id);
|
|
|
|
void unmountAllRomfs();
|
|
|
|
bool mountRomfs(uint32_t id);
|