dolphin/Source/Core/DolphinQt/GBAHost.h
2026-03-23 23:55:09 +01:00

32 lines
592 B
C++

// Copyright 2021 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#ifdef HAS_LIBMGBA
#include <span>
#include "Core/Host.h"
namespace HW::GBA
{
class Core;
} // namespace HW::GBA
class GBAWidgetController;
class GBAHost : public GBAHostInterface
{
public:
explicit GBAHost(std::weak_ptr<HW::GBA::Core> core);
~GBAHost() override;
void GameChanged() override;
void FrameEnded(std::span<const u32> video_buffer) override;
private:
GBAWidgetController* m_widget_controller{};
std::weak_ptr<HW::GBA::Core> m_core;
};
#endif // HAS_LIBMGBA