citra/src/core/hle/applets/erreula.h

34 lines
1.1 KiB
C++
Raw Normal View History

2016-03-30 12:52:59 +00:00
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/hle/applets/applet.h"
#include "core/hle/kernel/shared_memory.h"
2019-02-19 01:34:18 +00:00
namespace HLE::Applets {
2016-03-30 12:52:59 +00:00
class ErrEula final : public Applet {
public:
explicit ErrEula(Service::APT::AppletId id, Service::APT::AppletId parent, bool preload,
std::weak_ptr<Service::APT::AppletManager> manager)
: Applet(id, parent, preload, std::move(manager)) {}
2016-03-30 12:52:59 +00:00
ResultCode ReceiveParameterImpl(const Service::APT::MessageParameter& parameter) override;
ResultCode Start(const Service::APT::MessageParameter& parameter) override;
ResultCode Finalize() override;
2016-03-30 12:52:59 +00:00
void Update() override;
private:
2016-03-30 12:52:59 +00:00
/// This SharedMemory will be created when we receive the LibAppJustStarted message.
/// It holds the framebuffer info retrieved by the application with
/// GSPGPU::ImportDisplayCaptureInfo
std::shared_ptr<Kernel::SharedMemory> framebuffer_memory;
/// Parameter received by the applet on start.
std::vector<u8> startup_param;
2016-03-30 12:52:59 +00:00
};
2019-02-19 01:34:18 +00:00
} // namespace HLE::Applets