Rename to DuckStation

This commit is contained in:
Connor McLaughlin
2019-10-04 13:54:09 +10:00
parent 92ec5a0a14
commit bddbab9d60
61 changed files with 43 additions and 54 deletions

31
src/core/host_interface.h Normal file
View File

@ -0,0 +1,31 @@
#pragma once
#include "types.h"
#include <memory>
namespace GL {
class Texture;
}
class System;
class HostInterface
{
public:
HostInterface();
virtual ~HostInterface();
bool InitializeSystem(const char* filename, const char* exp1_filename);
virtual void SetDisplayTexture(GL::Texture* texture, u32 offset_x, u32 offset_y, u32 width, u32 height, float aspect_ratio) = 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;
bool LoadState(const char* filename);
bool SaveState(const char* filename);
protected:
std::unique_ptr<System> m_system;
bool m_running = false;
};