1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-12-02 00:32:10 +00:00
TegraExplorer/source/tegraexplorer/fs/fsutils.h

19 lines
620 B
C
Raw Normal View History

2020-03-18 22:58:32 +00:00
#pragma once
#include "../common/types.h"
#include "../../utils/types.h"
2020-05-15 15:07:23 +01:00
typedef struct {
u8 version[0x10];
u8 args;
u32 sizes[4];
} __attribute__((__packed__)) BisFile;
#define FLIPU32(in) ((in >> 24) & 0xFF) | ((in >> 8) & 0xFF00) | ((in << 8) & 0xFF0000) | ((in << 24) & 0xFF000000)
2020-03-18 22:58:32 +00:00
char *fsutil_getnextloc(const char *current, const char *add);
char *fsutil_getprevloc(char *current);
bool fsutil_checkfile(char* path);
u64 fsutil_getfilesize(char *path);
2020-03-19 15:11:18 +00:00
int fsutil_getfolderentryamount(const char *path);
2020-05-04 12:55:26 +01:00
int extract_bis_file(char *path, char *outfolder);
char *fsutil_formatFileAttribs(char *path);