Clean up bisfile extraction

This commit is contained in:
Such Meme, Many Skill
2020-05-15 16:07:23 +02:00
parent 6bc474a981
commit 9075f20854
2 changed files with 42 additions and 50 deletions

View File

@@ -2,6 +2,14 @@
#include "../common/types.h"
#include "../../utils/types.h"
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)
char *fsutil_getnextloc(const char *current, const char *add);
char *fsutil_getprevloc(char *current);
bool fsutil_checkfile(char* path);