summaryrefslogtreecommitdiff
path: root/src/core/hle/applets/erreula.h
diff options
context:
space:
mode:
authorGravatar mailwl2016-03-30 15:52:59 +0300
committerGravatar mailwl2016-07-04 09:54:51 +0300
commite06f2705f07b71e34ce503b045f6a81e82db91e9 (patch)
treefd62863b09208c511da9891cc419d31db5578c3d /src/core/hle/applets/erreula.h
parentMerge pull request #1935 from wwylele/fix-result-module (diff)
downloadyuzu-e06f2705f07b71e34ce503b045f6a81e82db91e9.tar.gz
yuzu-e06f2705f07b71e34ce503b045f6a81e82db91e9.tar.xz
yuzu-e06f2705f07b71e34ce503b045f6a81e82db91e9.zip
HLE/Applets: Implement ErrEula applet
Diffstat (limited to 'src/core/hle/applets/erreula.h')
-rw-r--r--src/core/hle/applets/erreula.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/applets/erreula.h b/src/core/hle/applets/erreula.h
new file mode 100644
index 000000000..9fe72ae07
--- /dev/null
+++ b/src/core/hle/applets/erreula.h
@@ -0,0 +1,31 @@
1// Copyright 2016 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "core/hle/applets/applet.h"
8#include "core/hle/kernel/shared_memory.h"
9
10namespace HLE {
11namespace Applets {
12
13class ErrEula final : public Applet {
14public:
15 explicit ErrEula(Service::APT::AppletId id): Applet(id) { }
16
17 ResultCode ReceiveParameter(const Service::APT::MessageParameter& parameter) override;
18 ResultCode StartImpl(const Service::APT::AppletStartupParameter& parameter) override;
19 void Update() override;
20 bool IsRunning() const override { return started; }
21
22 /// This SharedMemory will be created when we receive the LibAppJustStarted message.
23 /// It holds the framebuffer info retrieved by the application with GSPGPU::ImportDisplayCaptureInfo
24 Kernel::SharedPtr<Kernel::SharedMemory> framebuffer_memory;
25private:
26 /// Whether this applet is currently running instead of the host application or not.
27 bool started = false;
28};
29
30} // namespace Applets
31} // namespace HLE