2019-09-12 14:18:13 +00:00
|
|
|
#pragma once
|
|
|
|
#include "types.h"
|
2019-09-14 10:28:47 +00:00
|
|
|
#include <memory>
|
2019-09-12 14:18:13 +00:00
|
|
|
|
|
|
|
namespace GL {
|
|
|
|
class Texture;
|
|
|
|
}
|
|
|
|
|
2019-09-14 10:28:47 +00:00
|
|
|
class System;
|
|
|
|
|
2019-09-12 14:18:13 +00:00
|
|
|
class HostInterface
|
|
|
|
{
|
|
|
|
public:
|
2019-09-14 10:28:47 +00:00
|
|
|
HostInterface();
|
|
|
|
virtual ~HostInterface();
|
|
|
|
|
2019-09-30 04:22:30 +00:00
|
|
|
bool InitializeSystem(const char* filename, const char* exp1_filename);
|
2019-09-14 11:54:46 +00:00
|
|
|
|
2019-09-27 14:53:11 +00:00
|
|
|
virtual void SetDisplayTexture(GL::Texture* texture, u32 offset_x, u32 offset_y, u32 width, u32 height, float aspect_ratio) = 0;
|
2019-09-12 14:18:13 +00:00
|
|
|
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;
|
2019-09-14 10:28:47 +00:00
|
|
|
|
|
|
|
bool LoadState(const char* filename);
|
|
|
|
bool SaveState(const char* filename);
|
|
|
|
|
2019-09-30 04:22:30 +00:00
|
|
|
protected:
|
2019-09-14 10:28:47 +00:00
|
|
|
std::unique_ptr<System> m_system;
|
|
|
|
bool m_running = false;
|
2019-09-12 14:18:13 +00:00
|
|
|
};
|