From 1ac5401062814c694c8cf17e2dfc58217c858d1c Mon Sep 17 00:00:00 2001 From: rkx1209 Date: Mon, 26 Mar 2018 20:57:37 +0900 Subject: [PATCH] Add buid instructions --- README.md | 28 +++++++++++++++++++++++++++- include/Util.hpp | 4 ++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6760b14..3ef787e 100644 --- a/README.md +++ b/README.md @@ -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 +``` +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; +``` + diff --git a/include/Util.hpp b/include/Util.hpp index 888e115..128fded 100644 --- a/include/Util.hpp +++ b/include/Util.hpp @@ -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) {