Skip to content

Commit

Permalink
refactor: change password.txt location, improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DevYukine committed Jul 3, 2020
1 parent 652ea74 commit 62acced
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ If you wanna run this you need a switch with cfw installed (preferably Atmospher

## Getting Started

> This sys-module was only tested on Atmosphere 0.12.0, so if you use another version or cfw your experience might vary
> This sys-module was only tested on Atmosphere 0.13.0, so if you use another version or cfw your experience might vary
#### Using the .zip

1. Extract the content of the zip file
2. Copy content to sdmc://
3. Optional, create a password.txt in sdmc://config/sys-botbaseplus containing a password used for http communication

#### Using the .nsp
1. Copy the sys-botbaseplus.nsp file to sdmc://atmosphere/contents/430000000000000C rename it to exefs.nsp
2. Optional, create a password.txt in sdmc://atmosphere/contents/430000000000000C containing a password used for http communication
2. Optional, create a password.txt in sdmc://config/sys-botbaseplus containing a password used for http communication
3. Create a new folder in sdmc://atmosphere/contents/430000000000000C names "flags"
4. Create a empty file called boot2.flag inside this folder
5. Restart your switch
Expand Down
2 changes: 1 addition & 1 deletion sys-botbaseplus/source/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool Http::validateAuthentication(const httplib::Request& req, httplib::Response
auto val = req.get_header_value("Authorization");

if (Variables::authenticationToken == "") {
std::ifstream ifs("/atmosphere/contents/430000000000000C/password.txt");
std::ifstream ifs("/config/sys-botbaseplus/password.txt");
if (ifs.good()) {
std::string content( (std::istreambuf_iterator<char>(ifs) ), (std::istreambuf_iterator<char>()) );
Variables::authenticationToken = content;
Expand Down

0 comments on commit 62acced

Please sign in to comment.