diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-04-29 14:17:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-04-29 14:17:23 +0200 |
commit | 38914493e5aafa7fb3b7562fe05f9e31d07e429a (patch) | |
tree | 39421f4b47955f684e672e803c415b936a938aa7 | |
parent | ba8d547dfa81539f4e8474152d92e866ad89241b (diff) |
make myself at home
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | makefile | 11 | ||||
-rw-r--r-- | src/Wifi.cpp | 2 | ||||
-rw-r--r-- | src/frontend/qt_sdl/Platform.cpp | 3 |
4 files changed, 16 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 97dfc5b..ca26407 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +set(CMAKE_EXPORT_COMPILE_COMMANDS 1) add_compile_definitions(MELONDS_VERSION="${melonDS_VERSION}") diff --git a/makefile b/makefile new file mode 100644 index 0000000..dcc4ceb --- /dev/null +++ b/makefile @@ -0,0 +1,11 @@ +# lazy forwarding makefile + +.PHONY: FORCE +all: build/melonDS + +build/build.ninja: CMakeLists.txt + @cmake -B build -G Ninja --fresh --log-level WARNING + +build/melonDS: build/build.ninja FORCE + @ninja -C build + diff --git a/src/Wifi.cpp b/src/Wifi.cpp index d8f440b..7d560a5 100644 --- a/src/Wifi.cpp +++ b/src/Wifi.cpp @@ -2476,4 +2476,4 @@ const u8* Wifi::GetBSSID() const return (u8*)&IOPORT(W_BSSID0); } -}
\ No newline at end of file +} diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index b3230a4..d0272a0 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -453,6 +453,9 @@ u64 FileLength(FileHandle* file) void Log(LogLevel level, const char* fmt, ...) { + // disable noisy log messages + if (level == LogLevel::Debug) return; + if (fmt == nullptr) return; |