Skip to content

Commit

Permalink
Almost ready for 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Dec 29, 2019
1 parent 0e673e3 commit 2a1279f
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 97 deletions.
2 changes: 0 additions & 2 deletions 0.8-temp-changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Changelog

**NOTE:** this will be manually filled as soon as 0.8 is developed.

## General

- Updated to latest libnx. This simplifies the code, and fixes potential issues? old libnx could have had.
Expand Down
Binary file modified Goldleaf/Goldleaf.nacp
Binary file not shown.
2 changes: 1 addition & 1 deletion Goldleaf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ APP_TITLE := Goldleaf
APP_AUTHOR := XorTroll

# "-dev" prefix is manually appended when a new version has started development.
APP_VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO)-dev
APP_VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_MICRO)# -dev

#---------------------------------------------------------------------------------
# options for code generation
Expand Down
Binary file modified Goldleaf/RomFs/MenuBanner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Goldleaf/Source/Exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern "C"
Exit();
}

void NORETURN __wrap_fatalThrow(Result rc) // This way, any kind of fatal thrown by us or libnx gets saved to a simple report, and Goldleaf simply closes itself
void __wrap_fatalThrow(Result rc) // This way, any kind of fatal thrown by us or libnx gets saved to a simple report, and Goldleaf simply closes itself
{
auto fname = "fatal_" + hos::FormatHex(rc) + ".log";
String crashtxt = "\nGoldleaf fatal report\n\n";
Expand Down
3 changes: 2 additions & 1 deletion Goldleaf/Source/ns/ns_Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ namespace ns
{
u64 appId;
u32 version;
} in = { ApplicationId, LaunchVersion };
u8 pad[4];
} in = { ApplicationId, LaunchVersion, {0} };

return serviceDispatchIn(nsGetServiceSession_ApplicationManagerInterface(), 36, in);
}
Expand Down
2 changes: 1 addition & 1 deletion Quark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>xorTroll.goldleaf.quark</groupId>
<artifactId>Quark</artifactId>

<version>0.2</version>
<version>0.3</version>
<name>Quark</name>

<properties>
Expand Down
63 changes: 21 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<img src="Goldleaf/RomFs/Logo.png" alt="drawing" width="400"/>
# Goldleaf

![License](https://img.shields.io/badge/License-GPLv3-blue.svg) [![Releases](https://img.shields.io/github/downloads/xortroll/goldleaf/total.svg)](https://github.com/XorTroll/Goldleaf/releases/latest) [![LatestVer](https://img.shields.io/github/release-pre/xortroll/goldleaf.svg)](https://github.com/XorTroll/Goldleaf/releases/latest)
[![LatestVer](https://img.shields.io/github/release-pre/xortroll/goldleaf.svg)](https://github.com/XorTroll/Goldleaf/releases/latest) [![Releases](https://img.shields.io/github/downloads/xortroll/goldleaf/total.svg)](https://github.com/XorTroll/Goldleaf/releases/latest) ![License](https://img.shields.io/badge/License-GPLv3-blue.svg)

> Goldleaf is multipurpose homebrew tool for Nintendo Switch.
<img src="Screenshot-gleaf.jpg" alt="drawing" width="400"/> <img src="Screenshot-quark.png" alt="drawing" width="300"/>
<img src="Screenshots/Goldleaf.1.jpg" alt="drawing" width="250"/> <img src="Screenshots/Goldleaf.2.jpg" alt="drawing" width="250"/> <img src="Screenshots/Goldleaf.3.jpg" alt="drawing" width="250"/>

> Having any issues? Check [this help document](docs/FAQ.md) for help!
<img src="Screenshots/Goldleaf.4.jpg" alt="drawing" width="250"/> <img src="Screenshots/Goldleaf.5.jpg" alt="drawing" width="250"/> <img src="Screenshots/Goldleaf.6.jpg" alt="drawing" width="250"/>

<img src="Screenshots/Quark.1.png" alt="drawing" width="250"/> <img src="Screenshots/Goldleaf.7.jpg" alt="drawing" width="250"/> <img src="Screenshots/Quark.2.png" alt="drawing" width="250"/>

# Table of contents

1. [Features](#features)
2. [Disclaimer](#disclaimer)
3. [Quark and remote PC](#quark-and-remote-pc)
4. [Forwarding](#forwarding)
5. [Settings](#settings)
6. [Known bugs](#known-bugs)
7. [Contributing](#contributing)
8. [Credits and support](#credits-and-support)
4. [Settings](#settings)
5. [Known bugs](#known-bugs)
6. [Contributing](#contributing)
7. [Credits and support](#credits-and-support)

> Having any issues? Check [this help document](docs/FAQ.md) for help!
## **[Download it from here!](https://github.com/XorTroll/Goldleaf/releases)**

Expand All @@ -41,10 +44,12 @@ These are its main features:

- **Content manager**: Browse any kind of content in your SD card, console memory or game cartridge. You can browse all the NCAs, and as title options, you can remove the content, or export it as a NSP. NAND SYSTEM contents (system titles or contents) aren't allowed to be deleted. Invidual contents such as updates or DLC can be removed individually. You have also the option to remove unused tickets or tickets belonging to contents, plus the options to reset launch version (in order to remove the update nag) or to export base, updates or DLCs to installable NSPs.

- **Web browser (console's web-applet)**: Using the console's web applets, Goldleaf allows to search and navigate through web pages. However, this can only be accessed if launched from the forwarder for technical reasons.
- **Web browser (console's web-applet)**: Using the console's web applets, Goldleaf allows to search and navigate through web pages. You can even save pages as bookmarks to browse them quickly anytime.

- **User account manager**: Select a user account, and easily change things as the user's nickname or even delete it. Via the file browsers you can replace a user's icon with a JPEG image, but it can be a risky action. The icon needs to be a valid JPEG, with 256x256 dimensions. Goldleaf checks if the icon is valid to replace the other one. Linked accounts can also be unlinked (locally).

- **emuiibo manager**: You can control emuiibo (0.4 or higher) via Goldleaf, selecting custom amiibos, or enabling/disabling amiibo emulation, to make amiibo emulation way more comfortable than before.

- **Console or Goldleaf settings**: In this menu you can manage the console's update (view it's version or dump it as a directory installable with Choi or a NSP), and pending update in case it's present (auto-downloaded updates, which can also be viewed, dumped or deleted)

Among all this features, Goldleaf is a very intuitive tool, with a fancy UI, and fully translated into 5 different languages: **English**, **Spanish**, **German**, **French**, **Italian** and **Dutch**.
Expand All @@ -55,11 +60,11 @@ Among all this features, Goldleaf is a very intuitive tool, with a fancy UI, and

- **(ZL / ZR)** Show a dialog to shut down or reboot the console.

- **(Plus / +)** Show a dialog with this information.
- **(Minus / -)** Show a dialog with this information.

#### NRO-only controls

- **(Minus / -)** Exit the application in order to return to hbmenu.
- **(Plus / +)** Exit the application in order to return to hbmenu.

## Disclaimer

Expand All @@ -83,35 +88,7 @@ Goldleaf will display whether a ticket is present or not, and if so, it's titlek

Quark is a PC tool, with a fancy UI and made in Java, in order to help Goldleaf with the remote PC option. It should work on Windows, Linux or Mac.

Only requirement for Quark to work is **JRE/JDK 8u60 or higher**.

**One time setup**:

1. Download [Zadig](https://zadig.akeo.ie/)

2. Open Goldleaf and connect your Switch via USB with your PC

3. Open Zadig

4. Click "Options" and select "List all devices"

5. Select the Switch from the drop-down menu

6. Change the driver (right next to the green arrow) to "libusbK"

7. Click on the button below "Install WCID Driver" or "Replace Driver"

8. Done. Now you can use Goldleaf and Quark to directly access your PC!

**Note:** To use it correctly, make sure you open Goldleaf and connect the Switch with your PC before you launch Quark. Nevertheless, Quark will warn when USB connection is gone or no USB connection is found.

## Forwarding

Goldleaf is released along with a NSP, in order to launch Goldleaf as an installed title, and take advantage of extra RAM and features such as web browsing.

The NSP is a forwarder since **0.6**, what means that, instead of having Goldleaf's source inside the NSP, it simply loads the NRO from the SD card, meaning that only the NRO should be updated instead of having to reinstall the NSP.

Goldleaf's forwarding code tries to locate Goldleaf (`Goldleaf.nro`) in `sd:/switch/` and `sd:/switch/Goldleaf/`. If it isn't found, an error message will be displayed.
For details about how to properly setup Quark and USB, check [this small guide](Quark.md).

## Settings

Expand Down Expand Up @@ -162,10 +139,12 @@ So, via this configurations, UI's images, resources, element sizes and even tran

## Known bugs

- On Atmosphère and SX OS, exiting Goldleaf via HOME menu (as a NRO) seems to crash the system on 7.x firmwares due to a weird USB bug present on that specific versions. Any non-7.x firmware doesn't have this issue.
- Exiting Goldleaf via HOME menu (as a NRO) seems to crash the system on 7.x firmwares due to a weird USB bug present on that specific versions. Any non-7.x firmware doesn't have this issue.

- Apparently, after browsing (more than 4 times?) and then browsing (specific?) empty directories crashes Goldleaf. This issue is strangely common and needs to be looked into.

- Certain characters (Japanese/Chinese ones, for instance) aren't properly displayed due to the lack of those characters in the default font.

## Contributing

If you would like to contribute with new features, you are free to fork Goldleaf and open pull requests showcasing your additions.
Expand Down
49 changes: 0 additions & 49 deletions to-translate.txt

This file was deleted.

0 comments on commit 2a1279f

Please sign in to comment.