Skip to content

Commit

Permalink
Add ETA, remove fork, custom USB comms...
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Aug 14, 2019
1 parent 643c012 commit 7c2ce1e
Show file tree
Hide file tree
Showing 28 changed files with 1,008 additions and 316 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
build/
Build/
Output/
*.nso
*.nro
*.nsp
*.elf
keys.dat
hacbrewpack_backup/
hacbrewpack_nca/
hacbrewpack_nsp/
hacbrewpack_temp/
.vscode/
.vs/
bin/
obj/
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "Plutonium"]
path = Plutonium
url = https://github.com/XorTroll/Plutonium
[submodule "libnx"]
path = libnx
url = https://github.com/XorTroll/libnx
Binary file added Forwarder/BuildTools/hacbrewpack
Binary file not shown.
9 changes: 1 addition & 8 deletions Forwarder/Include/Forwarder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

static std::vector<std::string> GoldleafPaths =
{
"switch/Goldleaf.nro",
"switch/Goldleaf/Goldleaf.nro",
"switch/Goldleaf.nro",
};

inline std::string GetGoldleaf()
Expand All @@ -36,11 +36,4 @@ inline void FatalError(std::string Err, std::string MoreInfo)
std::cout << std::endl << "FATAL - An error ocurred attempting to " << Err << "." << std::endl << MoreInfo;
consoleUpdate(NULL);
while(true);
}

inline void ForwarderProcess(std::string Arg)
{
std::string gnro = GetGoldleaf();
if(gnro.empty()) FatalError("find Goldleaf NRO", "Place it on '/switch' folder.");
targetNro(gnro.c_str(), (gnro + " " + Arg).c_str());
}
2 changes: 1 addition & 1 deletion Forwarder/Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
int main()
{
std::string gnro = GetGoldleaf();
if(gnro.empty()) FatalError("find Goldleaf NRO", "Place it on '/switch' folder.");
if(gnro.empty()) FatalError("find Goldleaf NRO", "Place it on 'sd:/switch' (or 'sd:/switch/Goldleaf') folder.");
targetNro(gnro.c_str(), gnro.c_str());
}
3 changes: 1 addition & 2 deletions Forwarder/Source/hbl-Trampoline.s
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ nroEntrypointTrampoline:

// Save retval
adrp x1, g_lastRet
add x1, x1, #:lo12:g_lastRet
str x0, [x1]
str w0, [x1, #:lo12:g_lastRet]

// Reset stack pointer and load next NRO.
adrp x8, __stack_top
Expand Down
Loading

0 comments on commit 7c2ce1e

Please sign in to comment.