mirror of
https://github.com/citra-emu/citra.git
synced 2025-01-09 07:10:06 +00:00
3c15398f9e
* apt: Implement additional library applet state management. * kernel: Clear process handle table on exit. * apt: Implement system applet commands. * apt: Pop MediaType from command buffers with correct size. * apt: Improve accuracy of parameters and HLE applet lifecycle. * apt: General cleanup. * file_sys: Make system save data open error code more correct. Not sure if this is the exact right error code, but it's at least more correct than before as Game Notes will now create its system save data instead of throwing a fatal error. * apt: Fix launching New 3DS Internet Browser. * frd: Correct fix to GetMyScreenName response.
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
// 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"
|
|
|
|
namespace HLE::Applets {
|
|
|
|
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)) {}
|
|
|
|
ResultCode ReceiveParameterImpl(const Service::APT::MessageParameter& parameter) override;
|
|
ResultCode Start(const Service::APT::MessageParameter& parameter) override;
|
|
ResultCode Finalize() override;
|
|
void Update() override;
|
|
|
|
private:
|
|
/// 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;
|
|
};
|
|
|
|
} // namespace HLE::Applets
|