instructions
This commit is contained in:
parent
197fb6406a
commit
6941fbf4c8
20
README.md
20
README.md
|
@ -27,14 +27,18 @@ The code aims to follow the explanations from the [NES dev wiki](https://wiki.ne
|
||||||
## Compilation and use
|
## Compilation and use
|
||||||
|
|
||||||
1. Install [Rust](https://www.rust-lang.org/tools/install)
|
1. Install [Rust](https://www.rust-lang.org/tools/install)
|
||||||
2. Configure SDL2 for your platform:
|
2. Have a C compiler
|
||||||
- Windows: Have [Visual Studio](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=vs-2019) installed including the "Desktop development with C++" workload. Then follow the instructions here (skipping step 4 as `SDL2.dll` is already in the repo): https://github.com/Rust-SDL2/rust-sdl2#windows-msvc.
|
- Linux: `sudo apt install build-essential`
|
||||||
- macOS: Install [Homebrew](https://brew.sh/) and run `brew install sdl2`
|
- Mac: [XCode](https://apps.apple.com/us/app/xcode/id497799835)
|
||||||
- Linux: `sudo apt-get install libsdl2-dev` (or whatever your package manager is)
|
- Windows: install the [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16) (or [Visual Studio](https://docs.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=vs-2019) with the "Desktop development with C++" workload).
|
||||||
3. `cd nestur/ && cargo build --release` (be sure to build/run with the release flag or it will run very slowly)
|
3. Install CMake
|
||||||
4. The `nestur` executable or `nestur.exe` will be in `nestur/target/release`.
|
- Linux: `sudo apt install cmake`
|
||||||
5. Run with `$ ./nestur path/to/rom_filename.nes` or `> nestur.exe path\to\rom_filename.nes`.
|
- Mac: install [Homebrew](https://brew.sh/) and run `brew install cmake`
|
||||||
6. If the game uses battery-backed RAM (if it can save data when turned off), a save file like `rom_filename.sav` will be created in the same folder as the ROM when the program is exited. When Nestur is run again, it will look for a file matching the ROM name, with a `.sav` extension instead of `.nes`.
|
- [Windows](https://cmake.org/download/)
|
||||||
|
4. `cd nestur/ && cargo build --release` (be sure to build/run with the release flag or it will run very slowly)
|
||||||
|
5. The `nestur` executable or `nestur.exe` will be in `nestur/target/release`.
|
||||||
|
6. Run with `$ ./nestur path/to/rom_filename.nes` or `> nestur.exe path\to\rom_filename.nes`.
|
||||||
|
7. If the game uses battery-backed RAM (if it can save data when turned off), a save file like `rom_filename.sav` will be created in the same folder as the ROM when the program is exited. When Nestur is run again, it will look for a file matching the ROM name, with a `.sav` extension instead of `.nes`.
|
||||||
|
|
||||||
## To do
|
## To do
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue