From 38914493e5aafa7fb3b7562fe05f9e31d07e429a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 29 Apr 2024 14:17:23 +0200 Subject: make myself at home --- CMakeLists.txt | 1 + makefile | 11 +++++++++++ src/Wifi.cpp | 2 +- src/frontend/qt_sdl/Platform.cpp | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 makefile 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; -- cgit v1.2.3