File: GBAHost.h

package info (click to toggle)
dolphin-emu 5.0-17995-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 68,196 kB
  • sloc: cpp: 528,500; ansic: 74,478; sh: 2,477; javascript: 1,773; python: 1,116; makefile: 773; asm: 726; pascal: 257; perl: 97; objc: 75; xml: 4
file content (28 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2021 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#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();
  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;
};