dolphin/Source/Core/DolphinQt/GBAHost.h
2025-10-30 12:00:13 -07:00

32 lines
597 B
C++

// Copyright 2021 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#ifdef HAS_LIBMGBA
#include <vector>
#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(const std::vector<u32>& video_buffer) override;
private:
GBAWidgetController* m_widget_controller{};
std::weak_ptr<HW::GBA::Core> m_core;
};
#endif // HAS_LIBMGBA