1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-24 18:42:05 +00:00

fixed misleading display in internet settings page

This commit is contained in:
flb 2021-01-03 14:14:35 +01:00
parent 59ce4124a7
commit a2843d841f
2 changed files with 11 additions and 6 deletions

View file

@ -45,7 +45,7 @@ DATA := data
INCLUDES := include lib/zipper/include
APP_TITLE := All-in-One Switch Updater
APP_AUTHOR := HamletDuFromage
APP_VERSION := 1.4.0
APP_VERSION := 1.4.1
TARGET := $(notdir $(CURDIR))-v$(APP_VERSION)
ROMFS := resources
@ -78,7 +78,7 @@ CXXFLAGS := $(CFLAGS) -std=gnu++17 -fexceptions -Wno-reorder
ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
LIBS := -lm -lcurl -lnx -lz -lmbedtls -lmbedx509 -lmbedcrypto -lstdc++fs `freetype-config --libs`
LIBS := -lm -lcurl -lnx -lz -lmbedtls -lmbedx509 -lmbedcrypto -lstdc++fs
#LIBS := -ltwili -lm -lcurl -lnx -lz -lmbedtls -lmbedx509 -lmbedcrypto -lstdc++fs `freetype-config --libs`
#---------------------------------------------------------------------------------

View file

@ -22,10 +22,15 @@ NetPage::NetPage() : AppletFrame(true, true)
std::string labelText = "";
if(uuid){
if(profile.ip_setting_data.ip_address_setting.is_automatic){
labelText += "IP Adress: Automatic";
}
else{
labelText = "IP Adress: " + ipToString(profile.ip_setting_data.ip_address_setting.current_addr.addr)
+"\nSubnet Mask: " + ipToString(profile.ip_setting_data.ip_address_setting.subnet_mask.addr)
+"\nGateway: " + ipToString(profile.ip_setting_data.ip_address_setting.gateway.addr)
+"\nMTU: " + std::to_string(unsigned(profile.ip_setting_data.mtu));
+"\nGateway: " + ipToString(profile.ip_setting_data.ip_address_setting.gateway.addr);
}
labelText += "\nMTU: " + std::to_string(unsigned(profile.ip_setting_data.mtu));
if(profile.ip_setting_data.dns_setting.is_automatic){
labelText += "\nDNS: Automatic";