Debugger: Refactor to allow simpler broadcasting.

It's okay to mix a bit for simple ones, I think.
This commit is contained in:
Unknown W. Brackets 2018-09-01 10:15:22 -07:00
parent c10b2035b5
commit 4ce2b64ef7
16 changed files with 46 additions and 51 deletions

View file

@ -28,7 +28,7 @@
#include "Core/Screenshot.h"
#include "GPU/Debugger/Stepping.h"
void *WebSocketGPUBufferInit(DebuggerEventHandlerMap &map) {
DebuggerSubscriber *WebSocketGPUBufferInit(DebuggerEventHandlerMap &map) {
// No need to bind or alloc state, these are all global.
map["gpu.buffer.screenshot"] = &WebSocketGPUBufferScreenshot;
map["gpu.buffer.renderColor"] = &WebSocketGPUBufferRenderColor;