Update Dockerfile to use latest wut version

This commit is contained in:
Maschell 2022-07-24 22:05:12 +02:00
parent ce0fdbc057
commit 7ac15de1c1
5 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
FROM wiiuenv/devkitppc:20220213 FROM wiiuenv/devkitppc:20220724
COPY --from=wiiuenv/wiiupluginsystem:20210924 /artifacts $DEVKITPRO COPY --from=wiiuenv/wiiupluginsystem:20220724 /artifacts $DEVKITPRO
WORKDIR tmp_build WORKDIR tmp_build
COPY . . COPY . .

View File

@ -1,3 +1,3 @@
FROM wiiuenv/devkitppc:20220213 FROM wiiuenv/devkitppc:20220724
WORKDIR project WORKDIR project

View File

@ -27,7 +27,7 @@ PluginData::PluginData(uint32_t handle) {
PluginData::~PluginData() { PluginData::~PluginData() {
if (handle != 0) { if (handle != 0) {
if (WUPSDeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) { if (WUPSDeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) {
DEBUG_FUNCTION_LINE_ERR("### ERROR ###: Failed to delete plugin data"); DEBUG_FUNCTION_LINE_ERR("Failed to delete plugin data");
} }
} }
} }

View File

@ -2,8 +2,12 @@
#include <coreinit/debug.h> #include <coreinit/debug.h>
#include <cstring> #include <cstring>
#define __FILENAME_X__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) #define __FILENAME__ ({ \
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILENAME_X__) const char *filename = __FILE__; \
const char *pos = strrchr(filename, '/'); \
if (!pos) pos = strrchr(filename, '\\'); \
pos ? pos + 1 : filename; \
})
#define DEBUG_FUNCTION_LINE_ERR(FMT, ARGS...) \ #define DEBUG_FUNCTION_LINE_ERR(FMT, ARGS...) \
do { \ do { \

View File

@ -7,7 +7,7 @@ std::unique_ptr<T> make_unique_nothrow(Args &&...args) noexcept(noexcept(T(std::
} }
template<typename T> template<typename T>
inline typename std::_MakeUniq<T>::__array make_unique_nothrow(size_t num) noexcept { inline typename std::unique_ptr<T> make_unique_nothrow(size_t num) noexcept {
return std::unique_ptr<T>(new (std::nothrow) std::remove_extent_t<T>[num]()); return std::unique_ptr<T>(new (std::nothrow) std::remove_extent_t<T>[num]());
} }