summaryrefslogtreecommitdiff
path: root/src/core/hle/applets/erreula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/applets/erreula.cpp')
-rw-r--r--src/core/hle/applets/erreula.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cpp
index 92a4b2323..14964427b 100644
--- a/src/core/hle/applets/erreula.cpp
+++ b/src/core/hle/applets/erreula.cpp
@@ -3,7 +3,6 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/string_util.h" 5#include "common/string_util.h"
6
7#include "core/hle/applets/erreula.h" 6#include "core/hle/applets/erreula.h"
8#include "core/hle/service/apt/apt.h" 7#include "core/hle/service/apt/apt.h"
9 8
@@ -18,7 +17,8 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param
18 return ResultCode(-1); 17 return ResultCode(-1);
19 } 18 }
20 19
21 // The LibAppJustStarted message contains a buffer with the size of the framebuffer shared memory. 20 // The LibAppJustStarted message contains a buffer with the size of the framebuffer shared
21 // memory.
22 // Create the SharedMemory that will hold the framebuffer data 22 // Create the SharedMemory that will hold the framebuffer data
23 Service::APT::CaptureBufferInfo capture_info; 23 Service::APT::CaptureBufferInfo capture_info;
24 ASSERT(sizeof(capture_info) == parameter.buffer.size()); 24 ASSERT(sizeof(capture_info) == parameter.buffer.size());
@@ -30,9 +30,9 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param
30 // Allocate a heap block of the required size for this applet. 30 // Allocate a heap block of the required size for this applet.
31 heap_memory = std::make_shared<std::vector<u8>>(capture_info.size); 31 heap_memory = std::make_shared<std::vector<u8>>(capture_info.size);
32 // Create a SharedMemory that directly points to this heap block. 32 // Create a SharedMemory that directly points to this heap block.
33 framebuffer_memory = Kernel::SharedMemory::CreateForApplet(heap_memory, 0, heap_memory->size(), 33 framebuffer_memory = Kernel::SharedMemory::CreateForApplet(
34 MemoryPermission::ReadWrite, MemoryPermission::ReadWrite, 34 heap_memory, 0, heap_memory->size(), MemoryPermission::ReadWrite,
35 "ErrEula Memory"); 35 MemoryPermission::ReadWrite, "ErrEula Memory");
36 36
37 // Send the response message with the newly created SharedMemory 37 // Send the response message with the newly created SharedMemory
38 Service::APT::MessageParameter result; 38 Service::APT::MessageParameter result;
@@ -49,7 +49,8 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param
49ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parameter) { 49ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parameter) {
50 started = true; 50 started = true;
51 51
52 // TODO(Subv): Set the expected fields in the response buffer before resending it to the application. 52 // TODO(Subv): Set the expected fields in the response buffer before resending it to the
53 // application.
53 // TODO(Subv): Reverse the parameter format for the ErrEula applet 54 // TODO(Subv): Reverse the parameter format for the ErrEula applet
54 55
55 // Let the application know that we're closing 56 // Let the application know that we're closing
@@ -65,8 +66,7 @@ ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parame
65 return RESULT_SUCCESS; 66 return RESULT_SUCCESS;
66} 67}
67 68
68void ErrEula::Update() { 69void ErrEula::Update() {}
69}
70 70
71} // namespace Applets 71} // namespace Applets
72} // namespace HLE 72} // namespace HLE