summaryrefslogtreecommitdiff
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorGravatar Subv2015-05-27 15:21:06 -0500
committerGravatar Subv2015-07-11 22:32:12 -0500
commit725d5eea7879fa152c51f15fd76003d3c6bc44ed (patch)
treec260c6e094467c5d6b4694283573381310c2c96c /src/core/hle/service
parentApplets: Add infrastructure to allow custom drawing and input handling in App... (diff)
downloadyuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.gz
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.xz
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.zip
Applets: Reworked how the Applet update event is handled.
Applets are now cleaned up in AppletUpdateEvent after calling their respective Update method.
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/apt/apt.cpp4
-rw-r--r--src/core/hle/service/apt/apt.h2
-rw-r--r--src/core/hle/service/gsp_gpu.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp
index 783fad7ca..b364beed9 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -44,7 +44,7 @@ static u32 cpu_percent; ///< CPU time available to the running application
44/// Parameter data to be returned in the next call to Glance/ReceiveParameter 44/// Parameter data to be returned in the next call to Glance/ReceiveParameter
45static MessageParameter next_parameter; 45static MessageParameter next_parameter;
46 46
47void SendParameter(MessageParameter const& parameter) { 47void SendParameter(const MessageParameter& parameter) {
48 next_parameter = parameter; 48 next_parameter = parameter;
49 // Signal the event to let the application know that a new parameter is ready to be read 49 // Signal the event to let the application know that a new parameter is ready to be read
50 parameter_event->Signal(); 50 parameter_event->Signal();
@@ -338,7 +338,7 @@ void StartLibraryApplet(Service::Interface* self) {
338 u32* cmd_buff = Kernel::GetCommandBuffer(); 338 u32* cmd_buff = Kernel::GetCommandBuffer();
339 AppletId applet_id = static_cast<AppletId>(cmd_buff[1]); 339 AppletId applet_id = static_cast<AppletId>(cmd_buff[1]);
340 std::shared_ptr<HLE::Applets::Applet> applet = HLE::Applets::Applet::Get(applet_id); 340 std::shared_ptr<HLE::Applets::Applet> applet = HLE::Applets::Applet::Get(applet_id);
341 341
342 LOG_DEBUG(Service_APT, "called applet_id=%08X", applet_id); 342 LOG_DEBUG(Service_APT, "called applet_id=%08X", applet_id);
343 343
344 if (applet == nullptr) { 344 if (applet == nullptr) {
diff --git a/src/core/hle/service/apt/apt.h b/src/core/hle/service/apt/apt.h
index 510193cc8..9f0802508 100644
--- a/src/core/hle/service/apt/apt.h
+++ b/src/core/hle/service/apt/apt.h
@@ -63,7 +63,7 @@ enum class AppletId : u32 {
63}; 63};
64 64
65/// Send a parameter to the currently-running application, which will read it via ReceiveParameter 65/// Send a parameter to the currently-running application, which will read it via ReceiveParameter
66void SendParameter(MessageParameter const& parameter); 66void SendParameter(const MessageParameter& parameter);
67 67
68/** 68/**
69 * APT::Initialize service function 69 * APT::Initialize service function
diff --git a/src/core/hle/service/gsp_gpu.h b/src/core/hle/service/gsp_gpu.h
index 9fcf6f06f..268089fdd 100644
--- a/src/core/hle/service/gsp_gpu.h
+++ b/src/core/hle/service/gsp_gpu.h
@@ -176,7 +176,7 @@ void SignalInterrupt(InterruptId interrupt_id);
176void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info); 176void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info);
177 177
178/** 178/**
179 * Retrieves the framebuffer info stored in the GSP shared memory for the 179 * Retrieves the framebuffer info stored in the GSP shared memory for the
180 * specified screen index and thread id. 180 * specified screen index and thread id.
181 * @param thread_id GSP thread id of the process that accesses the structure that we are requesting. 181 * @param thread_id GSP thread id of the process that accesses the structure that we are requesting.
182 * @param screen_index Index of the screen we are requesting (Top = 0, Bottom = 1). 182 * @param screen_index Index of the screen we are requesting (Top = 0, Bottom = 1).