Skip to content

Commit

Permalink
More platform debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Dec 21, 2024
1 parent f1d62e0 commit 23dc257
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/platformFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 23dc257

Please sign in to comment.