Compile with latest wut version

This commit is contained in:
Maschell 2025-01-01 15:59:38 +01:00
parent cad1713357
commit 0635aa260f
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM ghcr.io/wiiu-env/devkitppc:20240505
FROM ghcr.io/wiiu-env/devkitppc:20241128
COPY --from=ghcr.io/wiiu-env/wiiupluginsystem:20240505 /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/libnotifications:20240426 /artifacts $DEVKITPRO

View File

@ -13,8 +13,10 @@
#include <string>
#include <sys/stat.h>
#include <thread>
#include <utils/logger.h>
#include <vpad/input.h>
#include <wups/function_patching.h>
#include <wups/storage.h>
static std::string sAromaUpdaterPath = AROMA_UPDATER_NEW_PATH_FULL;
static NotificationModuleHandle sAromaUpdateHandle = 0;
@ -108,7 +110,7 @@ void UpdateCheckThreadEntry() {
}
void ShowUpdateNotification() {
struct stat st {};
struct stat st{};
// Check if the Aroma Updater is on the sd card
if (stat(AROMA_UPDATER_OLD_PATH_FULL, &st) >= 0 && S_ISREG(st.st_mode)) {
sAromaUpdaterPath = AROMA_UPDATER_OLD_PATH;
@ -129,8 +131,6 @@ void ShowUpdateNotification() {
}
}
extern "C" uint32_t VPADGetButtonProcMode(uint32_t);
static bool updaterLaunched = false;
static uint32_t sHoldForXFrames = 0;
@ -190,14 +190,14 @@ DECL_FUNCTION(int32_t, VPADRead, VPADChan chan,
static uint32_t sWPADLastButtonHold[4] = {0, 0, 0, 0};
static uint32_t sHoldForXFramesWPAD[4] = {0, 0, 0, 0};
DECL_FUNCTION(void, WPADRead, WPADChan chan, WPADStatusProController *data) {
DECL_FUNCTION(void, WPADRead, WPADChan chan, WPADStatus *data) {
real_WPADRead(chan, data);
if (!sAromaUpdateHandle) {
return;
}
if (data && !updaterLaunched && chan >= 0 && chan < 4) {
if (data[0].err == 0) {
if (data[0].error == 0) {
if (data[0].extensionType != 0xFF) {
uint32_t curButtonHold = 0;
if (data[0].extensionType == WPAD_EXT_CORE || data[0].extensionType == WPAD_EXT_NUNCHUK) {