Debian Codegraph @

Source/Core/DolphinQt/GBAHost.h

raw symbols SCIP
1 // Copyright 2021 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
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 } // namespace HW::GBA
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 // HAS_LIBMGBA