mirror of
https://github.com/zeldaret/tp
synced 2026-06-03 10:31:57 -04:00
86f892c3d3
* JKRDvdArchive.s split * JKRMemArchive.s split * JKRAramArchive.s split * JKRCompArchive.s split * JKRDecomp.s split * JKRDvdRipper.s split * JKRAramBlock.s split * JKRAramHeap.s split * JKRAramPiece.s split * JKRAramStream.s split * removed unused .s files * JKRDvdAramRipper.s split * JKRAram.s split * cleanup and making vtables easier to debug * fixed merge errors * fixed JKRFileLoader::fetchVolumeName Co-authored-by: Pheenoh <pheenoh@gmail.com>
34 lines
866 B
C++
34 lines
866 B
C++
#ifndef __JKRDECOMP_H__
|
|
#define __JKRDECOMP_H__
|
|
|
|
#include "dolphin/types.h"
|
|
#include "JSystem/JKernel/JKRThread/JKRThread.h"
|
|
|
|
class JKRDecompCommand {
|
|
public:
|
|
JKRDecompCommand();
|
|
~JKRDecompCommand();
|
|
};
|
|
|
|
class JKRDecomp : public JKRThread {
|
|
private:
|
|
JKRDecomp(long);
|
|
virtual ~JKRDecomp(void);
|
|
|
|
/* vt[03] */ virtual void* run(); /* override */
|
|
|
|
public:
|
|
static void create(long);
|
|
static void prepareCommand(u8*, u8*, u32, u32, void (*)(u32));
|
|
static void sendCommand(JKRDecompCommand*);
|
|
static void sync(JKRDecompCommand*, int);
|
|
static void orderAsync(u8*, u8*, u32, u32, void (*)(u32));
|
|
static void orderSync(u8*, u8*, u32, u32);
|
|
static void decode(u8*, u8*, u32, u32);
|
|
static void decodeSZP(u8*, u8*, u32, u32);
|
|
static void decodeSZS(u8*, u8*, u32, u32);
|
|
static void checkCompressed(u8*);
|
|
};
|
|
|
|
#endif
|