diff --git a/.vscode/launch.json b/.vscode/launch.json index bc108ce..461a7ee 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,10 @@ "type": "cppvsdbg", "request": "launch", "name": "Test Bench", - "program": "${env:UNF_LOADER}", + "windows": { + "program": "UNFLoader.exe" + }, + "program": "UNFLoader", "args": ["-b", "-d", "-r", "${workspaceFolder}/src/test_bench.z64"], "preLaunchTask": "build", "console": "integratedTerminal" @@ -31,7 +34,10 @@ "type": "cppvsdbg", "request": "launch", "name": "Tests", - "program": "${env:UNF_LOADER}", + "windows": { + "program": "UNFLoader.exe" + }, + "program": "UNFLoader", "args": [ "-b", "-d", @@ -58,7 +64,10 @@ "type": "cppvsdbg", "request": "launch", "name": "Run selected example", - "program": "${env:UNF_LOADER}", + "windows": { + "program": "UNFLoader.exe" + }, + "program": "UNFLoader", "args": [ "-b", "-d", diff --git a/README.md b/README.md index e88e74d..e77c0bd 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ The root `bench` recipe is for building the code in root `src` folder. This is a There are also vscode launch configurations to quickly build the examples, tests and the bench. If you have the `N64_EMU` environment variable set pointing at your favourite emulator ([ares](https://ares-emu.net/) is highly recommended), the launch configurations ending in `(emu)` will kick your emulator with the selected example/code. You can also just hit F5 to launch the selected configuration. For the examples configuration, you can navigate to the relevant `.c` file and `Run selected example` will start it most of the time. In some cases, the output ROM name may not match the `.c` file and in those cases, you can select the ROM file and it should work. > [!NOTE] -> This repository also uses [UNFLoader](https://github.com/buu342/N64-UNFLoader), so you can use the launch configurations without `(emu)` to run the code if you have a supported flashcart plugged in and have `UNF_LOADER` environment variable pointing at the executable. +> This repository also uses [UNFLoader](https://github.com/buu342/N64-UNFLoader), so you can use the launch configurations without `(emu)` to run the code if you have a supported flashcart plugged in and have UNFLoader executable on your `PATH`. You can clean everything with the `clean` recipe/task (open the command palette and choose `Run Task -> clean`).