-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculator_NX Rewrite (and version 2.0.0) (#10)
* Removed all code and updated README * borealis subrepo stuff * Added simple calculator tab view layout * Calculator tab is now functional! * Fixed bug where the screen wouldn't update when a button is pressed * In-progress of adding the update feature * More borealis subrepo stuff * Added exponent operator * Update feature is now fully working! * Added message to exit app after finished update * Added wrapper for curl * Updated borealis submodule * Added tesla overlay * Preparing for release 2.0.0 * Last commit before rewrite merge
- Loading branch information
Showing
1,257 changed files
with
2,003 additions
and
367,797 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
build/* | ||
cnx_forwarder/build/* | ||
overlay/build/* | ||
*.elf | ||
*.nacp | ||
*.nro | ||
*.dksh | ||
*.dksh | ||
*.ovl | ||
.vscode/* | ||
./resources/shaders/** | ||
resources/shaders/fill_vsh.dksh |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[submodule "lib/borealis"] | ||
path = lib/borealis | ||
url = https://github.com/EmreTech/borealis.git | ||
branch = working-yoga | ||
[submodule "overlay/lib/libtesla"] | ||
path = overlay/lib/libtesla | ||
url = https://github.com/WerWolv/libtesla.git |
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
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,53 +1,26 @@ | ||
![Icon photo for Calculator_NX](./resources/Calculator_NX.jpg) | ||
|
||
# Calculator_NX | ||
This is my C++ Calculator program, ported to the Nintendo Switch. | ||
|
||
This app can now be used in a GUI way, or the normal Command-Line looking way. The app by default uses the GUI version. The command-line version (or CMD for short) has been deprecated. You should instead use the GUI version. | ||
### Currently under a rewrite. All features may not be implemented or work correctly. | ||
|
||
[Join the Discord Server!](https://discord.gg/WXKMvK2NRe) | ||
## Features | ||
|
||
## COMPLATION INSTRUCTIONS | ||
Calculator_NX can calculate any expression with the addition, subtraction, multiplication, division and exopoint operators. | ||
Calculator_NX includes a homebrew app which has full support for all the features, and a Tesla menu overlay, which can only calculate expressions (no updating or about tab). | ||
|
||
Compiling this program requires the libnx library and any other libraries required by libnx. These can be installed via [devkitpro.](https://devkitpro.org/wiki/Getting_Started) | ||
## Compile | ||
|
||
You also need some additional libraries for Borealis from devkitpro. Use `(sudo) (dkp-)pacman -S switch-glfw switch-mesa switch-glm` to download those libraries. | ||
In order to compile, you need to setup a development environment. | ||
[Refer to the Getting Started guide](https://devkitpro.org/wiki/Getting_Started) to start. | ||
|
||
You also need switch-curl, which is also from devkitpro. Use `(sudo) (dkp-)pacman -S switch-curl` to download it. | ||
|
||
You can then `git clone` this repo to any folder on your computer. To compile on Unix-based distros (these instructions are mostly for macOS & Linux), run `make` while in the root of the repo. To compile on Windows is unknown to me, so feel free to change this for instructions on Windows. | ||
|
||
### Complation troubleshooting | ||
|
||
When you ran the command `make` and it gives an error like: `Please set DEVKITPRO in your environment`, this means you have to edit the .bash_profile file (this file differs from versions of macOS/Linux) to add the following: | ||
After it's fully installed, please install the dependencies below. | ||
```bash | ||
export DEVKITPRO=/opt/devkitpro | ||
export DEVKITA64=/opt/devkitpro/devkitA64 | ||
export DEVKITARM=/opt/devkitpro/devkitARM | ||
export DEVKITPPC=/opt/devkitpro/devkitPPC | ||
export PATH=$DEVKITPPC/bin:$DEVKITPRO/tools/bin:$PATH | ||
(sudo) (dkp-)pacman -S switch-glfw switch-mesa switch-glm switch-curl | ||
``` | ||
|
||
Any errors relating to borealis should be reported. | ||
|
||
## PLANNED FEATURES | ||
|
||
Some planned features include translating the app. If you know English and another language (it doesn't have to be well), then join my Discord Server and we can discuss the translating part! | ||
|
||
## CREDITS | ||
|
||
Switchbrew for making libnx | ||
|
||
The people on the ReSwitched Discord server for helping me | ||
|
||
The people on the Switchroot Discord server for helping me on my original Calculator program (this is based on that) | ||
|
||
natinusala and any contributors for creating the borealis library | ||
|
||
The people on the RetroNX Discord server for helping me on using borealis | ||
|
||
## LICENSE | ||
Finally, run the `build.sh` file which will build the cnx_forwarder, the Calculator_NX app, and the Calculator_NX overlay. | ||
|
||
Calculator_NX uses the MIT License. Read the license for more details. | ||
## License | ||
|
||
borealis uses the Apache v2.0 License. Read the license in borealis/LICENSE for more details. | ||
Calculator_NX uses the MIT License. Read the license for more details. |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set dir to project root | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
cd $DIR | ||
|
||
# Make the cnx_forwarder | ||
pushd cnx_forwarder | ||
make | ||
popd | ||
|
||
# Make the main application | ||
make | ||
|
||
# Make the overlay | ||
pushd overlay | ||
make | ||
popd |
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
Oops, something went wrong.