-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
XorTroll
committed
Jul 29, 2019
1 parent
24a672d
commit a47e885
Showing
162 changed files
with
39,981 additions
and
39,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: XorTroll | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
custom: # Replace with a single custom sponsorship URL | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: XorTroll | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
custom: # Replace with a single custom sponsorship URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
--- | ||
|
||
name: Bug report | ||
about: Create a report of any issues or bugs you find on Goldleaf | ||
|
||
--- | ||
|
||
# [ Bug report title ] | ||
|
||
## Bug description | ||
|
||
[ Please describe your bug as detailed as possible here. ] | ||
|
||
## Your setup | ||
|
||
- **Console firmware**: [ e.g. 5.1, 6.2, 7.0.1 ] | ||
|
||
- **CFW with version**: [ e.g. ReiNX 2.1 or Atmosphere 0.85 ] | ||
|
||
- **Goldleaf version**: [ e.g. 0.5 or the exact nightly build ] | ||
|
||
- **Goldtree version**: [ e.g. 0.5 ] | ||
|
||
|
||
## Bug reproduction | ||
|
||
[ Describe as detailed as possible how to reproduce your bug, for others to be able to verify it. ] | ||
|
||
|
||
## Additional information | ||
|
||
--- | ||
|
||
name: Bug report | ||
about: Create a report of any issues or bugs you find on Goldleaf | ||
|
||
--- | ||
|
||
# [ Bug report title ] | ||
|
||
## Bug description | ||
|
||
[ Please describe your bug as detailed as possible here. ] | ||
|
||
## Your setup | ||
|
||
- **Console firmware**: [ e.g. 5.1, 6.2, 7.0.1 ] | ||
|
||
- **CFW with version**: [ e.g. ReiNX 2.1 or Atmosphere 0.85 ] | ||
|
||
- **Goldleaf version**: [ e.g. 0.5 or the exact nightly build ] | ||
|
||
- **Goldtree version**: [ e.g. 0.5 ] | ||
|
||
|
||
## Bug reproduction | ||
|
||
[ Describe as detailed as possible how to reproduce your bug, for others to be able to verify it. ] | ||
|
||
|
||
## Additional information | ||
|
||
[ Please add some extra information or screenshots. ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
|
||
name: Feature request | ||
about: Suggest an idea or new feature to improve Goldleaf | ||
|
||
--- | ||
|
||
# [ Feature name or title ] | ||
|
||
## Feature description | ||
|
||
[ Please describe your desired feature as detailed as possible here. ] | ||
|
||
## Benefits | ||
|
||
[ Describe the benefits the feature would have, aka the things it would make possible to do (or not do). ] | ||
|
||
## Additional information | ||
|
||
--- | ||
|
||
name: Feature request | ||
about: Suggest an idea or new feature to improve Goldleaf | ||
|
||
--- | ||
|
||
# [ Feature name or title ] | ||
|
||
## Feature description | ||
|
||
[ Please describe your desired feature as detailed as possible here. ] | ||
|
||
## Benefits | ||
|
||
[ Describe the benefits the feature would have, aka the things it would make possible to do (or not do). ] | ||
|
||
## Additional information | ||
|
||
[ In case you have any further ideas, mockups or information about the possible feature, place them here. ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
#include <string> | ||
#include <vector> | ||
#include <switch.h> | ||
#include <cstring> | ||
#include <iostream> | ||
#include <fstream> | ||
#include "hbl.h" | ||
|
||
static std::vector<std::string> GoldleafPaths = | ||
{ | ||
"switch/Goldleaf.nro", | ||
"switch/Goldleaf/Goldleaf.nro", | ||
}; | ||
|
||
inline std::string GetGoldleaf() | ||
{ | ||
std::string gp; | ||
for(u32 i = 0; i < GoldleafPaths.size(); i++) | ||
{ | ||
std::string gnro = "sdmc:/" + GoldleafPaths[i]; | ||
std::ifstream ifs(gnro); | ||
bool iok = ifs.good(); | ||
ifs.close(); | ||
if(iok) | ||
{ | ||
gp = gnro; | ||
break; | ||
} | ||
} | ||
return gp; | ||
} | ||
|
||
inline void FatalError(std::string Err, std::string MoreInfo) | ||
{ | ||
consoleInit(NULL); | ||
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()); | ||
#include <string> | ||
#include <vector> | ||
#include <switch.h> | ||
#include <cstring> | ||
#include <iostream> | ||
#include <fstream> | ||
#include "hbl.h" | ||
|
||
static std::vector<std::string> GoldleafPaths = | ||
{ | ||
"switch/Goldleaf.nro", | ||
"switch/Goldleaf/Goldleaf.nro", | ||
}; | ||
|
||
inline std::string GetGoldleaf() | ||
{ | ||
std::string gp; | ||
for(u32 i = 0; i < GoldleafPaths.size(); i++) | ||
{ | ||
std::string gnro = "sdmc:/" + GoldleafPaths[i]; | ||
std::ifstream ifs(gnro); | ||
bool iok = ifs.good(); | ||
ifs.close(); | ||
if(iok) | ||
{ | ||
gp = gnro; | ||
break; | ||
} | ||
} | ||
return gp; | ||
} | ||
|
||
inline void FatalError(std::string Err, std::string MoreInfo) | ||
{ | ||
consoleInit(NULL); | ||
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()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void targetNro(const char *path, const char *argv); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void targetNro(const char *path, const char *argv); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Oops, something went wrong.