summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-01-31 12:37:10 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-01-31 12:56:29 +0100
commit4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4 (patch)
tree76f0bd6058209248a52eb998f319ca6c9fb7a66a /src/core/hle/service
parentnifm: Add several structs (diff)
downloadyuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar.gz
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar.bz2
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar.lz
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar.xz
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.tar.zst
yuzu-4bf1cf1f81a44ee544c295cbe4945d2c8c05e0c4.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index b924a12d1..0c91897cd 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -266,6 +266,46 @@ private:
rb.Push(RESULT_SUCCESS);
rb.PushIpcInterface<IRequest>(system);
}
+ void GetCurrentNetworkProfile(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_NIFM, "(STUBBED) called");
+
+ const SfNetworkProfileData network_profile_data{
+ .ip_setting_data{
+ .ip_address_setting{
+ .is_automatic{true},
+ .current_address{192, 168, 1, 100},
+ .subnet_mask{255, 255, 255, 0},
+ .gateway{192, 168, 1, 1},
+ },
+ .dns_setting{
+ .is_automatic{true},
+ .primary_dns{1, 1, 1, 1},
+ .secondary_dns{1, 0, 0, 1},
+ },
+ .proxy_setting{
+ .enabled{false},
+ .port{},
+ .proxy_server{},
+ .automatic_auth_enabled{},
+ .user{},
+ .password{},
+ },
+ .mtu{1500},
+ },
+ .uuid{0xdeadbeef, 0xdeadbeef},
+ .network_name{"yuzu Network"},
+ .wireless_setting_data{
+ .ssid_length{12},
+ .ssid{"yuzu Network"},
+ .passphrase{"yuzupassword"},
+ },
+ };
+
+ ctx.WriteBuffer(network_profile_data);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
void RemoveNetworkProfile(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
@@ -335,7 +375,7 @@ IGeneralService::IGeneralService(Core::System& system_)
{1, &IGeneralService::GetClientId, "GetClientId"},
{2, &IGeneralService::CreateScanRequest, "CreateScanRequest"},
{4, &IGeneralService::CreateRequest, "CreateRequest"},
- {5, nullptr, "GetCurrentNetworkProfile"},
+ {5, &IGeneralService::GetCurrentNetworkProfile, "GetCurrentNetworkProfile"},
{6, nullptr, "EnumerateNetworkInterfaces"},
{7, nullptr, "EnumerateNetworkProfiles"},
{8, nullptr, "GetNetworkProfile"},