| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#ifdef HAS_LIBMGBA |
| 7 |
|
| 8 |
#include <span> |
| 9 |
|
| 10 |
#include "Core/Host.h" |
| 11 |
|
| 12 |
namespace HW::GBA |
| 13 |
{ |
| 14 |
class Core; |
| 15 |
} |
| 16 |
|
| 17 |
class GBAWidgetController; |
| 18 |
|
| 19 |
class GBAHost : public GBAHostInterface |
| 20 |
{ |
| 21 |
public: |
| 22 |
explicit GBAHost(std::weak_ptr<HW::GBA::Core> core); |
| 23 |
~GBAHost() override; |
| 24 |
void GameChanged() override; |
| 25 |
void FrameEnded(std::span<const u32> video_buffer) override; |
| 26 |
|
| 27 |
private: |
| 28 |
GBAWidgetController* m_widget_controller{}; |
| 29 |
std::weak_ptr<HW::GBA::Core> m_core; |
| 30 |
}; |
| 31 |
#endif |