mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-04 08:25:08 -05:00
27 lines
794 B
C
27 lines
794 B
C
#ifndef GUARD_DECOMPRESS_H
|
|
#define GUARD_DECOMPRESS_H
|
|
|
|
#include "file_system.h"
|
|
|
|
// size: 0x8
|
|
typedef struct SiroArchive
|
|
{
|
|
/* 0x0 */ u32 magic;
|
|
/* 0x4 */ const void *data;
|
|
} SiroArchive;
|
|
|
|
u32 DecompressAT(u8 *dst, s32 dstLen, const u8 *src);
|
|
u32 DecompressATFile(void *dst, s32 dstLen, OpenedFile *file);
|
|
u32 DecompressATGlobalFile(u32 *result, s32 resultLength, OpenedFile *file);
|
|
const void *GetSiroPtr(OpenedFile *openedFile);
|
|
void nullsub_16(void);
|
|
|
|
// Returns FALSE if the ascii chars in both strings match, ignoring uppercase/lowercase differences.
|
|
// "YeS\0" and "yEs\0" => FALSE
|
|
// "Yes\0" and "Tes\0" => TRUE
|
|
// "Yes\0" and "y\0" => TRUE
|
|
// "T\0" and "Tes\0" => TRUE
|
|
bool8 StrsDifferent_IgnoreCase(const char *strA, const char *strB, s32 maxLen);
|
|
|
|
#endif // GUARD_DECOMPRESS_H
|