From dbff9ca57770101b97302b43f221cd1a840f4150 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 17 Sep 2021 16:53:11 +0200 Subject: [PATCH] Update Dockerfile to use WUPS 0.5 --- Dockerfile | 4 ++-- src/main.cpp | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32a0363..050fefc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM wiiuenv/devkitppc:20210414 +FROM wiiuenv/devkitppc:20210917 -COPY --from=wiiuenv/wiiupluginsystem:20210417 /artifacts $DEVKITPRO +COPY --from=wiiuenv/wiiupluginsystem:20210917 /artifacts $DEVKITPRO COPY --from=wiiuenv/libiosuhax:20210109 /artifacts $DEVKITPRO WORKDIR project \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index d490d28..827d1d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ #include #include "utils/logger.h" #include +#include #include "virtualpath.h" #include "BackgroundThread.hpp" @@ -29,10 +30,12 @@ int fsaFd = -1; BackgroundThread * thread = nullptr; /* Entry point */ -ON_APPLICATION_START() { - ACGetAssignedAddress(&hostIpAddress); - - WHBLogUdpInit(); +ON_APPLICATION_START() { + nn::ac::Initialize(); + nn::ac::ConnectAsync(); + nn::ac::GetAssignedAddress(&hostIpAddress); + + WHBLogUdpInit(); //!******************************************************************* //! Initialize FS *