#pragma once #include #include "SifModule.h" class CSifModuleAdapter : public CSifModule { public: typedef std::function SifCommandHandler; CSifModuleAdapter() { } CSifModuleAdapter(const SifCommandHandler& handler) : m_handler(handler) { } virtual ~CSifModuleAdapter() { } virtual bool Invoke(uint32 method, uint32* args, uint32 argsSize, uint32* ret, uint32 retSize, uint8* ram) override { return m_handler(method, args, argsSize, ret, retSize, ram); } private: SifCommandHandler m_handler; };