diff options
Diffstat (limited to 'src/core/hle/applets/erreula.cpp')
| -rw-r--r-- | src/core/hle/applets/erreula.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cpp index 92a4b2323..144d6a152 100644 --- a/src/core/hle/applets/erreula.cpp +++ b/src/core/hle/applets/erreula.cpp | |||
| @@ -18,7 +18,8 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param | |||
| 18 | return ResultCode(-1); | 18 | return ResultCode(-1); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | // The LibAppJustStarted message contains a buffer with the size of the framebuffer shared memory. | 21 | // The LibAppJustStarted message contains a buffer with the size of the framebuffer shared |
| 22 | // memory. | ||
| 22 | // Create the SharedMemory that will hold the framebuffer data | 23 | // Create the SharedMemory that will hold the framebuffer data |
| 23 | Service::APT::CaptureBufferInfo capture_info; | 24 | Service::APT::CaptureBufferInfo capture_info; |
| 24 | ASSERT(sizeof(capture_info) == parameter.buffer.size()); | 25 | ASSERT(sizeof(capture_info) == parameter.buffer.size()); |
| @@ -30,9 +31,9 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param | |||
| 30 | // Allocate a heap block of the required size for this applet. | 31 | // Allocate a heap block of the required size for this applet. |
| 31 | heap_memory = std::make_shared<std::vector<u8>>(capture_info.size); | 32 | heap_memory = std::make_shared<std::vector<u8>>(capture_info.size); |
| 32 | // Create a SharedMemory that directly points to this heap block. | 33 | // Create a SharedMemory that directly points to this heap block. |
| 33 | framebuffer_memory = Kernel::SharedMemory::CreateForApplet(heap_memory, 0, heap_memory->size(), | 34 | framebuffer_memory = Kernel::SharedMemory::CreateForApplet( |
| 34 | MemoryPermission::ReadWrite, MemoryPermission::ReadWrite, | 35 | heap_memory, 0, heap_memory->size(), MemoryPermission::ReadWrite, |
| 35 | "ErrEula Memory"); | 36 | MemoryPermission::ReadWrite, "ErrEula Memory"); |
| 36 | 37 | ||
| 37 | // Send the response message with the newly created SharedMemory | 38 | // Send the response message with the newly created SharedMemory |
| 38 | Service::APT::MessageParameter result; | 39 | Service::APT::MessageParameter result; |
| @@ -49,7 +50,8 @@ ResultCode ErrEula::ReceiveParameter(const Service::APT::MessageParameter& param | |||
| 49 | ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parameter) { | 50 | ResultCode ErrEula::StartImpl(const Service::APT::AppletStartupParameter& parameter) { |
| 50 | started = true; | 51 | started = true; |
| 51 | 52 | ||
| 52 | // TODO(Subv): Set the expected fields in the response buffer before resending it to the application. | 53 | // TODO(Subv): Set the expected fields in the response buffer before resending it to the |
| 54 | // application. | ||
| 53 | // TODO(Subv): Reverse the parameter format for the ErrEula applet | 55 | // TODO(Subv): Reverse the parameter format for the ErrEula applet |
| 54 | 56 | ||
| 55 | // Let the application know that we're closing | 57 | // Let the application know that we're closing |