diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/service.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 94bc5ade7..76b3533ec 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -72,25 +72,6 @@ | |||
| 72 | 72 | ||
| 73 | namespace Service { | 73 | namespace Service { |
| 74 | 74 | ||
| 75 | /** | ||
| 76 | * Creates a function string for logging, complete with the name (or header code, depending | ||
| 77 | * on what's passed in) the port name, and all the cmd_buff arguments. | ||
| 78 | */ | ||
| 79 | [[maybe_unused]] static std::string MakeFunctionString(std::string_view name, | ||
| 80 | std::string_view port_name, | ||
| 81 | const u32* cmd_buff) { | ||
| 82 | // Number of params == bits 0-5 + bits 6-11 | ||
| 83 | int num_params = (cmd_buff[0] & 0x3F) + ((cmd_buff[0] >> 6) & 0x3F); | ||
| 84 | |||
| 85 | std::string function_string = fmt::format("function '{}': port={}", name, port_name); | ||
| 86 | for (int i = 1; i <= num_params; ++i) { | ||
| 87 | function_string += fmt::format(", cmd_buff[{}]=0x{:X}", i, cmd_buff[i]); | ||
| 88 | } | ||
| 89 | return function_string; | ||
| 90 | } | ||
| 91 | |||
| 92 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 93 | |||
| 94 | ServiceFrameworkBase::ServiceFrameworkBase(const char* service_name, u32 max_sessions, | 75 | ServiceFrameworkBase::ServiceFrameworkBase(const char* service_name, u32 max_sessions, |
| 95 | InvokerFn* handler_invoker) | 76 | InvokerFn* handler_invoker) |
| 96 | : service_name(service_name), max_sessions(max_sessions), handler_invoker(handler_invoker) {} | 77 | : service_name(service_name), max_sessions(max_sessions), handler_invoker(handler_invoker) {} |
| @@ -189,9 +170,6 @@ ResultCode ServiceFrameworkBase::HandleSyncRequest(Kernel::HLERequestContext& co | |||
| 189 | return RESULT_SUCCESS; | 170 | return RESULT_SUCCESS; |
| 190 | } | 171 | } |
| 191 | 172 | ||
| 192 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 193 | // Module interface | ||
| 194 | |||
| 195 | /// Initialize ServiceManager | 173 | /// Initialize ServiceManager |
| 196 | void Init(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system) { | 174 | void Init(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system) { |
| 197 | // NVFlinger needs to be accessed by several services like Vi and AppletOE so we instantiate it | 175 | // NVFlinger needs to be accessed by several services like Vi and AppletOE so we instantiate it |