N64FlashcartMenu
|
Expected pre-requsites:
Within the code, use the debugf
command, and then deploy using a debug build e.g. make run-debug
.
The output will then be shown within the console.
For the future: ms-vscode.makefile-tools
will hopefully help (installed automatically in dev container).
NOTE: it does not yet work with F5
: see this blog post.
Make sure that your firmware is compatible (currently v2.20.2+). See: here
You will need to download a copy of the sc64deployer
from here or build your own depending on the scenario.
It is not currently possible to directly communicate with USB devices from a devcontainer. BUT, you can use a proxy TCP/IP connection as a workaround.
To set up a "proxy", open a terminal window on the native OS, then cd ./tools/sc64
and then ./sc64deployer.exe server
. Keep this terminal window open.
Then, in the dev container, use make run
or make run-debug
.
If you want to Deploy and debug to a fully remote target (over your LAN) Make sure that the remote target device (i.e. the one with the carts USB connected) has the server running (similar as specified in To the native OS, but):
The following commands can then be run from the docker environment terminal:
To upload and run the ROM (requires power toggle):
To debug the ROM (requires power toggle):
To debug the ROM with upload and auto reboot: (note: the current debugging session menu may not be the same as the file uploaded. you need to make all
first to ensure the latest menu is uploaded).
sc64deployer.exe
in the tools/sc64
directory.make run
or make run-debug
in the terminal.NOTE: A "release" version of the SC64 menu is called sc64menu.n64
and can be generated by running make all
or running make sc64
. You can then copy the resulting sc64menu.n64
file to your SD card.
For ease of development and debugging, the N64FlashcartMenu ROM can run in the Ares emulator (without most flashcart features).
N64FlashcartMenu.n64
ROM.Within the code, use the debugf
command, and then deploy using a debug build e.g. make run-debug
.
The output will then be shown within the terminal.
To enable features that are not build by default, you can input flags as part of the build. i.e. the current notible flags are:
An example build command would be: make clean && FLAGS="-DFEATURE_PATCHER_GUI_ENABLED -DFEATURE_DEPRECATED_FUNCTIONALITY" make all
To update to the latest version, use git submodule update --remote
from the terminal.
This repo currently uses the preview
branch as a submodule at a specific commit.
cd ./libdragon && make clobber -j && make libdragon tools -j && make install tools-install -j && cd ..
Run doxygen
from the dev container terminal. Make sure you fix the warnings before creating a PR!
Generated documentation is located in the output/docs
folder and auto-published to the gh-pages
branch when merged with main
.
Once merged, they can be viewed here.
Testing the documentation locally allows you to preview changes and ensure everything renders correctly before submitting your changes.
Install Prerequisites:
You can then serve the webpage: