mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Debugger: add log.channels.list/log.channel.set over the WebSocket API
Lets a client query all log categories (Common/Log.h's Log enum) with their current level/enabled state, and change a channel's level and/or enabled state at runtime - same data LogConfigScreen already exposes in the UI, now reachable from the debugger protocol. Levels are named strings (notice, error, warning, info, debug, verbose) rather than the 1-6 numbers the existing passive 'log' event uses (LogBroadcaster.cpp, left unchanged) - clearer for a config-style API where you're not scanning a stream. Registered as a new subscriber alongside the others in WebSocket.cpp, and wired into all the build systems that need a new source file (CMake, the Windows and UWP vcxprojs, Android.mk - libretro's Makefile.common doesn't build any WebSocket debugger files so needs no entry). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GZq8ZtJmFY7bkX5FVkr3P9
This commit is contained in:
1 parent
29a38af37e
commit
ce33c964f7
10 files changed
+179
No files matched your search
@@ -63,6 +63,7 @@
|
||||
#include "Core/Debugger/WebSocket/GPUStatsSubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/HLESubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/InputSubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/LogConfigSubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/MemoryInfoSubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/MemorySubscriber.h"
|
||||
#include "Core/Debugger/WebSocket/ReplaySubscriber.h"
|
||||
@@ -81,6 +82,7 @@ static const std::vector<SubscriberInit> subscribers({
|
||||
&WebSocketGPUStatsInit,
|
||||
&WebSocketHLEInit,
|
||||
&WebSocketInputInit,
|
||||
&WebSocketLogConfigInit,
|
||||
&WebSocketMemoryInfoInit,
|
||||
&WebSocketMemoryInit,
|
||||
&WebSocketReplayInit,
|
||||
|
||||
Reference in new issue
Block a user