Add buid instructions

This commit is contained in:
rkx1209 2018-03-26 20:57:37 +09:00
parent fbdf9fe643
commit 1ac5401062
2 changed files with 29 additions and 3 deletions

View file

@ -1,2 +1,28 @@
# NSEMU
NSEMU is Nintendo Switch Emulator. It allows you to play games on PC.
NSEMU is a Nintendo Switch Emulator. It allows you to play games on PC.
## Building
```
git clone https://github.com/RKX1209/nsemu.git
cd nsemu
make -j4
```
## Running
```
./nsemu <NSO file>
```
You can try some homebrew application like [libtransistor](https://github.com/reswitched/libtransistor).
```
./nsemu /path/to/libtransistor/build/test/test_bsd.nso
```
## Debugging
Currently you should modify a run level flag to debugging mode.
include/Util.hpp
```cpp
static RunLevel curlevel = RUN_LEVEL_DEBUG;
//static RunLevel curlevel = RUN_LEVEL_RELEASE;
```

View file

@ -13,8 +13,8 @@ enum RunLevel {
RUN_LEVEL_DEBUG,
};
static RunLevel curlevel = RUN_LEVEL_DEBUG;
//static RunLevel curlevel = RUN_LEVEL_RELEASE;
//static RunLevel curlevel = RUN_LEVEL_DEBUG;
static RunLevel curlevel = RUN_LEVEL_RELEASE;
static void util_print(RunLevel level, FILE *fp, const char *format, ...) {
if (curlevel >= level) {