mirror of
https://github.com/RKX1209/nsemu.git
synced 2024-06-22 22:22:34 -04:00
Add buid instructions
This commit is contained in:
parent
fbdf9fe643
commit
1ac5401062
28
README.md
28
README.md
|
@ -1,2 +1,28 @@
|
||||||
# NSEMU
|
# 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;
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ enum RunLevel {
|
||||||
RUN_LEVEL_DEBUG,
|
RUN_LEVEL_DEBUG,
|
||||||
};
|
};
|
||||||
|
|
||||||
static RunLevel curlevel = RUN_LEVEL_DEBUG;
|
//static RunLevel curlevel = RUN_LEVEL_DEBUG;
|
||||||
//static RunLevel curlevel = RUN_LEVEL_RELEASE;
|
static RunLevel curlevel = RUN_LEVEL_RELEASE;
|
||||||
|
|
||||||
static void util_print(RunLevel level, FILE *fp, const char *format, ...) {
|
static void util_print(RunLevel level, FILE *fp, const char *format, ...) {
|
||||||
if (curlevel >= level) {
|
if (curlevel >= level) {
|
||||||
|
|
Loading…
Reference in a new issue