mirror of
https://github.com/zeldaret/tp
synced 2026-06-02 10:10:35 -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>
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
#ifndef __JKRARAMSTREAM_H__
|
|
#define __JKRARAMSTREAM_H__
|
|
|
|
#include "dolphin/types.h"
|
|
#include "JSystem/JKernel/JKRThread/JKRThread.h"
|
|
#include "JSystem/JSupport/JSUFileInputStream/JSUFileInputStream.h"
|
|
#include "JSystem/JSupport/JSURandomInputStream/JSURandomInputStream.h"
|
|
|
|
class JKRAramStreamCommand {
|
|
public:
|
|
JKRAramStreamCommand();
|
|
|
|
public:
|
|
u32 field_0x00;
|
|
u32 field_0x04;
|
|
u32 field_0x08;
|
|
u32 field_0x0c;
|
|
JSUFileInputStream* field_0x10;
|
|
u32 field_0x14;
|
|
u32* field_0x18;
|
|
u32 field_0x1c;
|
|
u32 field_0x20;
|
|
u32 field_0x24;
|
|
bool field_0x28;
|
|
u8 padding_0x29[3];
|
|
u32 field_0x2c;
|
|
OSMessageQueue mQueue;
|
|
OSMessage mMessage;
|
|
u32 field_0x54;
|
|
u32 field_0x58;
|
|
};
|
|
|
|
class JKRAramStream : public JKRThread {
|
|
private:
|
|
JKRAramStream(long);
|
|
virtual ~JKRAramStream();
|
|
|
|
/* vt[03] */ void* run(void); /* override */
|
|
|
|
public:
|
|
static void create(long);
|
|
|
|
static void readFromAram(void);
|
|
static void writeToAram(JKRAramStreamCommand*);
|
|
static void write_StreamToAram_Async(JSUFileInputStream*, u32, u32, u32, u32*);
|
|
static void sync(JKRAramStreamCommand*, int);
|
|
static void setTransBuffer(u8*, u32, JKRHeap*);
|
|
};
|
|
|
|
#endif
|