Skip to content

Commit

Permalink
Update everything
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Jul 29, 2019
1 parent 24a672d commit a47e885
Show file tree
Hide file tree
Showing 162 changed files with 39,981 additions and 39,963 deletions.
18 changes: 9 additions & 9 deletions .github/FUNDING.yml
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
62 changes: 31 additions & 31 deletions .github/ISSUE_TEMPLATE/bug_report.md
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. ]
38 changes: 19 additions & 19 deletions .github/ISSUE_TEMPLATE/feature_request.md
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. ]
90 changes: 45 additions & 45 deletions Forwarder/Include/Forwarder.hpp
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());
}
16 changes: 8 additions & 8 deletions Forwarder/Include/hbl.h
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
Loading

0 comments on commit a47e885

Please sign in to comment.