Play-/Source/iop/Iop_FileIoHandler2100.h

42 lines
540 B
C
Raw Permalink Normal View History

#pragma once
#include "Iop_FileIo.h"
namespace Iop
{
class CFileIoHandler2100 : public CFileIo::CHandler
{
public:
2018-04-30 21:01:23 +01:00
CFileIoHandler2100(CIoman*);
2019-09-13 11:16:16 -04:00
bool Invoke(uint32, uint32*, uint32, uint32*, uint32, uint8*) override;
private:
struct OPENCOMMAND
{
2018-04-30 21:01:23 +01:00
uint32 flags;
uint32 somePtr1;
char fileName[256];
};
struct CLOSECOMMAND
{
2018-04-30 21:01:23 +01:00
uint32 fd;
};
struct READCOMMAND
{
2018-04-30 21:01:23 +01:00
uint32 fd;
uint32 buffer;
uint32 size;
};
struct SEEKCOMMAND
{
2018-04-30 21:01:23 +01:00
uint32 fd;
uint32 offset;
uint32 whence;
};
};
};