From caa93cda4838404b5b6612689a0c4b212b54ee63 Mon Sep 17 00:00:00 2001 From: RadsammyT Date: Sat, 23 Mar 2024 00:51:40 -0400 Subject: [PATCH] PR#3 review: (hopefully) unfuck formatting changes squash: re-deanonymize AppletIdToProgramId() --- .../hle/service/am/service/library_applet_creator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/hle/service/am/service/library_applet_creator.cpp b/src/core/hle/service/am/service/library_applet_creator.cpp index 4048cb8704..b4c95a8ff3 100644 --- a/src/core/hle/service/am/service/library_applet_creator.cpp +++ b/src/core/hle/service/am/service/library_applet_creator.cpp @@ -52,7 +52,7 @@ std::shared_ptr CreateGuestApplet(Core::System& system, std::shared_ptr caller_applet, AppletId applet_id, LibraryAppletMode mode) { - const auto program_id = static_cast(Service::AM::AppletIdToProgramId(applet_id)); + const auto program_id = static_cast(AppletIdToProgramId(applet_id)); if (program_id == 0) { // Unknown applet return {}; @@ -94,7 +94,7 @@ std::shared_ptr CreateFrontendApplet(Core::System& syste std::shared_ptr caller_applet, AppletId applet_id, LibraryAppletMode mode) { - const auto program_id = static_cast(Service::AM::AppletIdToProgramId(applet_id)); + const auto program_id = static_cast(AppletIdToProgramId(applet_id)); auto process = std::make_unique(system); auto applet = std::make_shared(system, std::move(process), false); @@ -163,10 +163,11 @@ AppletProgramId AppletIdToProgramId(AppletId applet_id) { } } + ILibraryAppletCreator::ILibraryAppletCreator(Core::System& system_, std::shared_ptr applet, WindowSystem& window_system) - : ServiceFramework{system_, "ILibraryAppletCreator"}, m_window_system{window_system}, - m_applet{std::move(applet)} { + : ServiceFramework{system_, "ILibraryAppletCreator"}, + m_window_system{window_system}, m_applet{std::move(applet)} { static const FunctionInfo functions[] = { {0, D<&ILibraryAppletCreator::CreateLibraryApplet>, "CreateLibraryApplet"}, {1, nullptr, "TerminateAllLibraryApplets"},