From 23dc2579563c88e552cdf8e7ac0dc591ac3b25af Mon Sep 17 00:00:00 2001 From: Saurtron Date: Sun, 22 Dec 2024 00:19:14 +0100 Subject: [PATCH] More platform debug. --- common/platformFunctions.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/platformFunctions.lua b/common/platformFunctions.lua index 9b588b6111..fdde6f2503 100644 --- a/common/platformFunctions.lua +++ b/common/platformFunctions.lua @@ -54,4 +54,8 @@ extendPlatform() Spring.Echo("PLATFORM", Platform.numDisplays, Platform.glslVersionNum, Json.encode(Platform.availableVideoModes)) Spring.Echo("PLATFORM2", Platform.glHaveAMD, Platform.glHaveNVidia, Platform.glHaveIntel, Platform.glSupportDepthBufferBitDepth) -Spring.Echo("FULLPLATFORM", Json.encode(Platform)) +local platformStr = Json.encode(Platform) +local strLen = string.len(platformStr) +for i=0, math.floor(strLen/20) do + Spring.Echo(string.sub(platformStr, i*20, (i+1)*20)) +end