Play-/Source/iop/Iop_Stdio.h

31 lines
586 B
C
Raw Permalink Normal View History

#pragma once
#include "Iop_Module.h"
#include "ArgumentIterator.h"
namespace Iop
{
class CIoman;
class CStdio : public CModule
{
public:
2018-04-30 21:01:23 +01:00
CStdio(uint8*, CIoman&);
2018-05-25 21:52:36 -04:00
virtual ~CStdio() = default;
2018-04-30 21:01:23 +01:00
std::string GetId() const override;
std::string GetFunctionName(unsigned int) const override;
void Invoke(CMIPS&, unsigned int) override;
2018-04-30 21:01:23 +01:00
void __printf(CMIPS&);
2018-05-27 15:11:48 -04:00
int32 __puts(uint32);
2018-04-30 21:01:23 +01:00
std::string PrintFormatted(const char*, CArgumentIterator&);
private:
2018-04-30 21:01:23 +01:00
uint8* m_ram;
CIoman& m_ioman;
};
typedef std::shared_ptr<CStdio> StdioPtr;
}