Skip to content

Commit

Permalink
Update Dockerfile, use WUMS 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed Jan 30, 2022
1 parent 56edd42 commit 2798272
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM wiiuenv/devkitppc:20211106
FROM wiiuenv/devkitppc:20211229

COPY --from=wiiuenv/libwupsbackend:20211001 /artifacts $DEVKITPRO
COPY --from=wiiuenv/librpxloader:20210924 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiupluginsystem:20211001 /artifacts $DEVKITPRO
COPY --from=wiiuenv/librpxloader:20211002 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiupluginsystem:20220123 /artifacts $DEVKITPRO

WORKDIR project
19 changes: 7 additions & 12 deletions src/utils/TcpReceiver.cpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#include <algorithm>
#include <string>
#include <vector>
#include <string.h>
#include <cstring>
#include <zlib.h>
#include <sysapp/launch.h>

#include <coreinit/dynload.h>
#include <coreinit/title.h>

#include <coreinit/messagequeue.h>
#include <coreinit/ios.h>
#include <coreinit/debug.h>
#include <coreinit/cache.h>
#include <sysapp/title.h>

#include "TcpReceiver.h"
#include "fs/FSUtils.h"
#include "utils/net.h"
#include "utils/utils.h"
#include <wups_backend/PluginUtils.h>
#include <coreinit/debug.h>
#include <coreinit/cache.h>
#include <rpxloader.h>

#define RPX_TEMP_PATH "fs:/vol/external01/wiiu/apps/"
Expand All @@ -28,11 +28,6 @@
#define WUHB_TEMP_FILE_EX "wiiu/apps/temp.wuhb"
#define WUHB_TEMP_FILE_2_EX "wiiu/apps/temp2.wuhb"

extern "C" {
uint64_t _SYSGetSystemApplicationTitleId(int32_t);
void _SYSLaunchTitleWithStdArgsInNoSplash(uint64_t, uint32_t);
}

TcpReceiver::TcpReceiver(int32_t port)
: CThread(CThread::eAttributeAffCore1, 16, 0x20000), exitRequested(false), serverPort(port), serverSocket(-1) {

Expand Down Expand Up @@ -284,7 +279,7 @@ int32_t TcpReceiver::loadToMemory(int32_t clientSocket, uint32_t ipAddress) {
free(loadAddress);
free(inflatedData);

_SYSLaunchTitleWithStdArgsInNoSplash(OSGetTitleID(), 0);
_SYSLaunchTitleWithStdArgsInNoSplash(OSGetTitleID(), nullptr);
return fileSize;
} else {
DEBUG_FUNCTION_LINE("Failed to parse plugin");
Expand Down Expand Up @@ -319,8 +314,8 @@ int32_t TcpReceiver::loadToMemory(int32_t clientSocket, uint32_t ipAddress) {
DEBUG_FUNCTION_LINE("Starting a homebrew title!");
RL_LoadFromSDOnNextLaunch(file_path);

uint64_t titleID = _SYSGetSystemApplicationTitleId(8);
_SYSLaunchTitleWithStdArgsInNoSplash(titleID, 0);
uint64_t titleID = _SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_HEALTH_AND_SAFETY);
_SYSLaunchTitleWithStdArgsInNoSplash(titleID, nullptr);
return fileSize;
}

Expand Down

0 comments on commit 2798272

Please sign in to comment.