stubbs
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
#include "hid_core/resources/npad/npad_vibration.h"
|
#include "hid_core/resources/npad/npad_vibration.h"
|
||||||
#include "hid_core/resources/palma/palma.h"
|
#include "hid_core/resources/palma/palma.h"
|
||||||
#include "hid_core/resources/touch_screen/touch_screen.h"
|
#include "hid_core/resources/touch_screen/touch_screen.h"
|
||||||
|
#include "hid_core/resources/hid_firmware_settings.h"
|
||||||
|
#include "core/hle/service/set/settings_types.h"
|
||||||
|
|
||||||
namespace Service::HID {
|
namespace Service::HID {
|
||||||
|
|
||||||
|
@@ -419,6 +419,14 @@ void IGeneralService::GetCurrentNetworkProfile(HLERequestContext& ctx) {
|
|||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IGeneralService::EnumerateNetworkInterfaces(HLERequestContext& ctx) {
|
||||||
|
LOG_ERROR(Service_NIFM, "(STUBBED) called");
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
|
void IGeneralService::RemoveNetworkProfile(HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||||
|
|
||||||
@@ -576,6 +584,13 @@ void IGeneralService::IsAnyForegroundRequestAccepted(HLERequestContext& ctx) {
|
|||||||
rb.Push<u8>(is_accepted);
|
rb.Push<u8>(is_accepted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IGeneralService::GetCurrentAccessPoint(HLERequestContext& ctx) {
|
||||||
|
LOG_ERROR(Service_NIFM, "(STUBBED) called");
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
IGeneralService::IGeneralService(Core::System& system_)
|
IGeneralService::IGeneralService(Core::System& system_)
|
||||||
: ServiceFramework{system_, "IGeneralService"}, network{system_.GetRoomNetwork()} {
|
: ServiceFramework{system_, "IGeneralService"}, network{system_.GetRoomNetwork()} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
@@ -584,7 +599,7 @@ IGeneralService::IGeneralService(Core::System& system_)
|
|||||||
{2, &IGeneralService::CreateScanRequest, "CreateScanRequest"},
|
{2, &IGeneralService::CreateScanRequest, "CreateScanRequest"},
|
||||||
{4, &IGeneralService::CreateRequest, "CreateRequest"},
|
{4, &IGeneralService::CreateRequest, "CreateRequest"},
|
||||||
{5, &IGeneralService::GetCurrentNetworkProfile, "GetCurrentNetworkProfile"},
|
{5, &IGeneralService::GetCurrentNetworkProfile, "GetCurrentNetworkProfile"},
|
||||||
{6, nullptr, "EnumerateNetworkInterfaces"},
|
{6, &IGeneralService::EnumerateNetworkInterfaces, "EnumerateNetworkInterfaces"},
|
||||||
{7, nullptr, "EnumerateNetworkProfiles"},
|
{7, nullptr, "EnumerateNetworkProfiles"},
|
||||||
{8, nullptr, "GetNetworkProfile"},
|
{8, nullptr, "GetNetworkProfile"},
|
||||||
{9, nullptr, "SetNetworkProfile"},
|
{9, nullptr, "SetNetworkProfile"},
|
||||||
@@ -614,7 +629,7 @@ IGeneralService::IGeneralService(Core::System& system_)
|
|||||||
{33, nullptr, "ConfirmSystemAvailability"},
|
{33, nullptr, "ConfirmSystemAvailability"},
|
||||||
{34, nullptr, "SetBackgroundRequestEnabled"},
|
{34, nullptr, "SetBackgroundRequestEnabled"},
|
||||||
{35, nullptr, "GetScanData"},
|
{35, nullptr, "GetScanData"},
|
||||||
{36, nullptr, "GetCurrentAccessPoint"},
|
{36, &IGeneralService::GetCurrentAccessPoint, "GetCurrentAccessPoint"},
|
||||||
{37, nullptr, "Shutdown"},
|
{37, nullptr, "Shutdown"},
|
||||||
{38, nullptr, "GetAllowedChannels"},
|
{38, nullptr, "GetAllowedChannels"},
|
||||||
{39, nullptr, "NotifyApplicationSuspended"},
|
{39, nullptr, "NotifyApplicationSuspended"},
|
||||||
|
@@ -27,6 +27,7 @@ private:
|
|||||||
void CreateScanRequest(HLERequestContext& ctx);
|
void CreateScanRequest(HLERequestContext& ctx);
|
||||||
void CreateRequest(HLERequestContext& ctx);
|
void CreateRequest(HLERequestContext& ctx);
|
||||||
void GetCurrentNetworkProfile(HLERequestContext& ctx);
|
void GetCurrentNetworkProfile(HLERequestContext& ctx);
|
||||||
|
void EnumerateNetworkInterfaces(HLERequestContext& ctx);
|
||||||
void RemoveNetworkProfile(HLERequestContext& ctx);
|
void RemoveNetworkProfile(HLERequestContext& ctx);
|
||||||
void GetCurrentIpAddress(HLERequestContext& ctx);
|
void GetCurrentIpAddress(HLERequestContext& ctx);
|
||||||
void CreateTemporaryNetworkProfile(HLERequestContext& ctx);
|
void CreateTemporaryNetworkProfile(HLERequestContext& ctx);
|
||||||
@@ -37,6 +38,7 @@ private:
|
|||||||
void IsEthernetCommunicationEnabled(HLERequestContext& ctx);
|
void IsEthernetCommunicationEnabled(HLERequestContext& ctx);
|
||||||
void IsAnyInternetRequestAccepted(HLERequestContext& ctx);
|
void IsAnyInternetRequestAccepted(HLERequestContext& ctx);
|
||||||
void IsAnyForegroundRequestAccepted(HLERequestContext& ctx);
|
void IsAnyForegroundRequestAccepted(HLERequestContext& ctx);
|
||||||
|
void GetCurrentAccessPoint(HLERequestContext& ctx);
|
||||||
|
|
||||||
Network::RoomNetwork& network;
|
Network::RoomNetwork& network;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user