A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
chore(native): trace the dispatcher's whole message while diagnosing
esengine1059c5d4cce7
diff --git a/native/host/steam/SteamApi.cpp b/native/host/steam/SteamApi.cppindex 0435494b7..30bd24b30 100644--- a/native/host/steam/SteamApi.cpp+++ b/native/host/steam/SteamApi.cpp@@ -330,7 +330,11 @@ void SteamApi::pump() {g_fns.dispatchRunFrame(pipe_);CallbackMsg msg{};while (g_fns.dispatchNext(pipe_, &msg)) {- if (traceCallbacks_) ESHOST_LOGI("steam: callback %d (%d bytes)", msg.callback, msg.paramSize);+ if (traceCallbacks_) {+ ESHOST_LOGI("steam: callback user=%d id=%d bytes=%d first=%d",+ msg.steamUser, msg.callback, msg.paramSize,+ msg.param && msg.paramSize > 0 ? (int)msg.param[0] : -1);+ }if (msg.callback == kGameOverlayActivated && msg.param && msg.paramSize > kOverlayActiveOffset) {const bool covered = msg.param[kOverlayActiveOffset] != 0;if (overlay_) overlay_(covered);