#pragma once #include "types.h" #include namespace GL { class Texture; } class System; class HostInterface { public: HostInterface(); virtual ~HostInterface(); bool InitializeSystem(const char* filename, const char* exp1_filename, const char* save_state_filename); virtual void SetDisplayTexture(GL::Texture* texture, u32 offset_x, u32 offset_y, u32 width, u32 height) = 0; virtual void ReportMessage(const char* message) = 0; // Adds OSD messages, duration is in seconds. virtual void AddOSDMessage(const char* message, float duration = 2.0f) = 0; protected: bool LoadState(const char* filename); bool SaveState(const char* filename); std::unique_ptr m_system; bool m_running = false; };