How do I make my own channel forwarder without haxchi?

pietempgba

Well-Known Member
OP
Member
Joined
Jun 9, 2016
Messages
1,049
Trophies
0
XP
1,515
Country
United States
I saw Laf111's WiiUFtpServer repo and I see that there's a rpx file in there here but I don't know how it was made including the app and cos xml files, also is there a valid range of titleids? I'm tired of having to rely on the haxchi forwarder guide with limited filepathes.
 

V10lator

Well-Known Member
Member
Joined
Apr 21, 2019
Messages
2,687
Trophies
1
Age
36
XP
5,672
Country
Germany
I'm currenty working on Tiramisu forwarders... These are extremely early, none functional codes I don't have time for to fix but feel free to do whatever you want with it:
C:
#include <stdint.h>

#include <coreinit/cache.h>
#include <coreinit/ios.h>
#include <coreinit/mcp.h>
#include <sysapp/launch.h>

#include <whb/log.h>
#include <whb/log_udp.h>
#include <whb/proc.h>

#include <wut_structsize.h>

extern void _SYSLaunchTitleWithStdArgsInNoSplash(uint64_t, int);

typedef struct WUT_PACKED
{
    uint32_t cmd;
    uint32_t tgt;
    uint32_t fs;
    uint32_t fo;
    char path[256];
} LOAD_REQUEST;
WUT_CHECK_OFFSET(LOAD_REQUEST, 0x00, cmd);
WUT_CHECK_OFFSET(LOAD_REQUEST, 0x04, tgt);
WUT_CHECK_OFFSET(LOAD_REQUEST, 0x08, fs);
WUT_CHECK_OFFSET(LOAD_REQUEST, 0x0C, fo);
WUT_CHECK_OFFSET(LOAD_REQUEST, 0x10, path);
WUT_CHECK_SIZE(LOAD_REQUEST, 0x110);

const uint64_t hs[3] = { 0x000500101004E000, 0x000500101004E100, 0x000500101004E200 };

const LOAD_REQUEST request =
{
    .cmd = 0xFC,
    .tgt = 0,
    .fs = 0,
    .fo = 0,
    .path = "wiiu/apps/[TODO].rpx",
};
void *reqPtr = (void *)&request;

int main()
{
    WHBProcInit();
    WHBLogUdpInit();
    WHBLogPrint("RetroArch loader");

    int mcpHandle = MCP_Open();
    if(mcpHandle > 0)
    {
        WHBLogPrint("Sending request");
        DCFlushRange(reqPtr, sizeof(LOAD_REQUEST));
        IOS_Ioctl(mcpHandle, 100, reqPtr, sizeof(LOAD_REQUEST), NULL, 0);

        uint64_t tid = 0;
        MCPTitleListType tlt;

        for(int i = 0; i < 3; ++i)
        {
            if(MCP_GetTitleInfo(mcpHandle, hs[i], &tlt) == 0)
            {
                tid = hs[i];
                break;
            }
        }

        MCP_Close(mcpHandle);

        if(tid)
        {
            WHBLogPrint("Sending relaunch request");
            _SYSLaunchTitleWithStdArgsInNoSplash(tid, 0);
            WHBLogPrint("Returning");
            WHBLogUdpDeinit();
            WHBProcStopRunning();
            WHBProcIsRunning();
            return 0;
        }
    }

    SYSLaunchMenu();
    WHBLogPrint("Returning with error");
    WHBLogUdpDeinit();
    WHBProcStopRunning();
    WHBProcIsRunning();
    return 0;
}
 
  • Like
Reactions: Donnie-Burger

pietempgba

Well-Known Member
OP
Member
Joined
Jun 9, 2016
Messages
1,049
Trophies
0
XP
1,515
Country
United States
I'm trying to compile the homebrew launcher's sd_loader but I keep on getting stuck here


Code:
sd_loader/src/entry.c:1:10: fatal error: dynamic_libs/os_types.h: No such file or directory
    1 | #include <dynamic_libs/os_types.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I'm a woman
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, making the first level on my game
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, uremum is
  • BigOnYa @ BigOnYa:
    That's cool, what's the game about?
  • S @ salazarcosplay:
    @K3Nv2 you wantign people to know the pos you are, thats also a good too. In communicating with people you are having them learn about your opinions and who you are as a person, you will be remembered by them, as we remember you in the forum. You are not indifferent
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, kind of like megaman or contra
    +1
  • Xdqwerty @ Xdqwerty:
    its too simple what i have done
  • BigOnYa @ BigOnYa:
    You using the Smart camera extention, its nice, centers you on screen but with little lag so feels better than just Center player on screen. You can add/ subject lag amount also.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i dont use it
  • Xdqwerty @ Xdqwerty:
    i use the "center camera in object" action
  • Xdqwerty @ Xdqwerty:
    and i cant find that smart camera extension
  • BigOnYa @ BigOnYa:
    Sorry, its called Smooth Camera
    +1
  • S @ salazarcosplay:
    @BigOnYa we should have a meeting with other forum memebers and take shrooms
  • S @ salazarcosplay:
    i think you would be a great trip guider
  • BigOnYa @ BigOnYa:
    Nuh, I'd wonder off somewhere probably
  • BigOnYa @ BigOnYa:
    My wifey made some Sun tea yesterday, and cut up some peaches in let sit in there w the teabags, shit is Da bomb. Bout to try it with some peach vodka..
  • S @ salazarcosplay:
    @BigOnYa sounds wish we could see Randy on south park do that , drinking the peach vodka
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, im more of a casual south park fan, i dont watch it that often
  • BigOnYa @ BigOnYa:
    Its gluten free
  • K3Nv2 @ K3Nv2:
    lol it's too offensive
    +1
  • BigOnYa @ BigOnYa:
    Nuh not that good, not many alcohols taste good in tea. At least I haven't found any.
  • K3Nv2 @ K3Nv2:
    I tried that peach alcohol in cans tasted like crap
  • F @ foresthag:
    You could fermen(tea). That'd taste excellent. Or make you go blind, who is to say?
  • K3Nv2 @ K3Nv2:
    Twisted tea iirc
  • BigOnYa @ BigOnYa:
    Only one I liked was that mikes hard lemonade tea, but i couldn't drink it all day
    BigOnYa @ BigOnYa: Only one I liked was that mikes hard lemonade tea, but i couldn't drink it all day