mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-11-27 08:14:14 +01:00
Compile with latest devkitPPC
This commit is contained in:
parent
cf1923b8f8
commit
74d53f5502
@ -1,3 +1,3 @@
|
|||||||
FROM wiiuenv/devkitppc:20211106
|
FROM wiiuenv/devkitppc:20220728
|
||||||
|
|
||||||
WORKDIR project
|
WORKDIR project
|
@ -88,8 +88,11 @@ bool writeFileContent(const std::string &path, const std::string &content) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __fini();
|
extern "C" void __fini();
|
||||||
|
extern "C" void __init_wut_malloc();
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
// We need to call __init_wut_malloc somewhere so wut_malloc will be used for the memory allocation.
|
||||||
|
__init_wut_malloc();
|
||||||
initLogging();
|
initLogging();
|
||||||
|
|
||||||
if (IOS_Open((char *) ("/dev/iosuhax"), static_cast<IOSOpenMode>(0)) >= 0) {
|
if (IOS_Open((char *) ("/dev/iosuhax"), static_cast<IOSOpenMode>(0)) >= 0) {
|
||||||
|
@ -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]());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user