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