summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------externals/dynarmic0
-rw-r--r--src/core/hle/kernel/kernel.cpp2
-rw-r--r--src/core/hle/service/friend/friend.cpp23
3 files changed, 13 insertions, 12 deletions
diff --git a/externals/dynarmic b/externals/dynarmic
Subproject 646fd0592091c5c1e5899fa715bd7b7fcc977a3 Subproject c28f13af9797c0319d9a38b5b5c8470ff906e2c
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 780008b08..5b6c7792e 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -68,9 +68,9 @@ struct KernelCore::Impl {
68 InitializePhysicalCores(); 68 InitializePhysicalCores();
69 InitializeSystemResourceLimit(kernel, system); 69 InitializeSystemResourceLimit(kernel, system);
70 InitializeMemoryLayout(); 70 InitializeMemoryLayout();
71 InitializePreemption(kernel);
72 InitializeSchedulers(); 71 InitializeSchedulers();
73 InitializeSuspendThreads(); 72 InitializeSuspendThreads();
73 InitializePreemption(kernel);
74 } 74 }
75 75
76 void InitializeCores() { 76 void InitializeCores() {
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index 72a877d68..0a6621ef2 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -133,7 +133,7 @@ private:
133 void GetBlockedUserListIds(Kernel::HLERequestContext& ctx) { 133 void GetBlockedUserListIds(Kernel::HLERequestContext& ctx) {
134 // This is safe to stub, as there should be no adverse consequences from reporting no 134 // This is safe to stub, as there should be no adverse consequences from reporting no
135 // blocked users. 135 // blocked users.
136 LOG_WARNING(Service_ACC, "(STUBBED) called"); 136 LOG_WARNING(Service_Friend, "(STUBBED) called");
137 IPC::ResponseBuilder rb{ctx, 3}; 137 IPC::ResponseBuilder rb{ctx, 3};
138 rb.Push(RESULT_SUCCESS); 138 rb.Push(RESULT_SUCCESS);
139 rb.Push<u32>(0); // Indicates there are no blocked users 139 rb.Push<u32>(0); // Indicates there are no blocked users
@@ -141,14 +141,14 @@ private:
141 141
142 void DeclareCloseOnlinePlaySession(Kernel::HLERequestContext& ctx) { 142 void DeclareCloseOnlinePlaySession(Kernel::HLERequestContext& ctx) {
143 // Stub used by Splatoon 2 143 // Stub used by Splatoon 2
144 LOG_WARNING(Service_ACC, "(STUBBED) called"); 144 LOG_WARNING(Service_Friend, "(STUBBED) called");
145 IPC::ResponseBuilder rb{ctx, 2}; 145 IPC::ResponseBuilder rb{ctx, 2};
146 rb.Push(RESULT_SUCCESS); 146 rb.Push(RESULT_SUCCESS);
147 } 147 }
148 148
149 void UpdateUserPresence(Kernel::HLERequestContext& ctx) { 149 void UpdateUserPresence(Kernel::HLERequestContext& ctx) {
150 // Stub used by Retro City Rampage 150 // Stub used by Retro City Rampage
151 LOG_WARNING(Service_ACC, "(STUBBED) called"); 151 LOG_WARNING(Service_Friend, "(STUBBED) called");
152 IPC::ResponseBuilder rb{ctx, 2}; 152 IPC::ResponseBuilder rb{ctx, 2};
153 rb.Push(RESULT_SUCCESS); 153 rb.Push(RESULT_SUCCESS);
154 } 154 }
@@ -159,7 +159,7 @@ private:
159 const auto uuid = rp.PopRaw<Common::UUID>(); 159 const auto uuid = rp.PopRaw<Common::UUID>();
160 [[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>(); 160 [[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>();
161 const auto pid = rp.Pop<u64>(); 161 const auto pid = rp.Pop<u64>();
162 LOG_WARNING(Service_ACC, "(STUBBED) called, offset={}, uuid={}, pid={}", friend_offset, 162 LOG_WARNING(Service_Friend, "(STUBBED) called, offset={}, uuid={}, pid={}", friend_offset,
163 uuid.Format(), pid); 163 uuid.Format(), pid);
164 164
165 IPC::ResponseBuilder rb{ctx, 3}; 165 IPC::ResponseBuilder rb{ctx, 3};
@@ -191,7 +191,7 @@ public:
191 191
192private: 192private:
193 void GetEvent(Kernel::HLERequestContext& ctx) { 193 void GetEvent(Kernel::HLERequestContext& ctx) {
194 LOG_DEBUG(Service_ACC, "called"); 194 LOG_DEBUG(Service_Friend, "called");
195 195
196 IPC::ResponseBuilder rb{ctx, 2, 1}; 196 IPC::ResponseBuilder rb{ctx, 2, 1};
197 rb.Push(RESULT_SUCCESS); 197 rb.Push(RESULT_SUCCESS);
@@ -199,7 +199,7 @@ private:
199 } 199 }
200 200
201 void Clear(Kernel::HLERequestContext& ctx) { 201 void Clear(Kernel::HLERequestContext& ctx) {
202 LOG_DEBUG(Service_ACC, "called"); 202 LOG_DEBUG(Service_Friend, "called");
203 while (!notifications.empty()) { 203 while (!notifications.empty()) {
204 notifications.pop(); 204 notifications.pop();
205 } 205 }
@@ -210,10 +210,10 @@ private:
210 } 210 }
211 211
212 void Pop(Kernel::HLERequestContext& ctx) { 212 void Pop(Kernel::HLERequestContext& ctx) {
213 LOG_DEBUG(Service_ACC, "called"); 213 LOG_DEBUG(Service_Friend, "called");
214 214
215 if (notifications.empty()) { 215 if (notifications.empty()) {
216 LOG_ERROR(Service_ACC, "No notifications in queue!"); 216 LOG_ERROR(Service_Friend, "No notifications in queue!");
217 IPC::ResponseBuilder rb{ctx, 2}; 217 IPC::ResponseBuilder rb{ctx, 2};
218 rb.Push(ERR_NO_NOTIFICATIONS); 218 rb.Push(ERR_NO_NOTIFICATIONS);
219 return; 219 return;
@@ -231,7 +231,8 @@ private:
231 break; 231 break;
232 default: 232 default:
233 // HOS seems not have an error case for an unknown notification 233 // HOS seems not have an error case for an unknown notification
234 LOG_WARNING(Service_ACC, "Unknown notification {:08X}", notification.notification_type); 234 LOG_WARNING(Service_Friend, "Unknown notification {:08X}",
235 notification.notification_type);
235 break; 236 break;
236 } 237 }
237 238
@@ -269,14 +270,14 @@ void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) {
269 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 270 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
270 rb.Push(RESULT_SUCCESS); 271 rb.Push(RESULT_SUCCESS);
271 rb.PushIpcInterface<IFriendService>(system); 272 rb.PushIpcInterface<IFriendService>(system);
272 LOG_DEBUG(Service_ACC, "called"); 273 LOG_DEBUG(Service_Friend, "called");
273} 274}
274 275
275void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) { 276void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) {
276 IPC::RequestParser rp{ctx}; 277 IPC::RequestParser rp{ctx};
277 auto uuid = rp.PopRaw<Common::UUID>(); 278 auto uuid = rp.PopRaw<Common::UUID>();
278 279
279 LOG_DEBUG(Service_ACC, "called, uuid={}", uuid.Format()); 280 LOG_DEBUG(Service_Friend, "called, uuid={}", uuid.Format());
280 281
281 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 282 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
282 rb.Push(RESULT_SUCCESS); 283 rb.Push(RESULT_SUCCESS);