From e1d491b7c522688b43dc1a2fbeb2530c8960be2a Mon Sep 17 00:00:00 2001 From: Cartread <69614530+Cartread@users.noreply.github.com> Date: Thu, 13 Aug 2020 00:26:17 -0400 Subject: [PATCH 1/2] Update boot.lua Removing the alpha variable allows anyone who overwrote the setColor function to see errorhandler's print. e.g. I'm overwriting the setColor function to accommodate 0-255 values and the error message is being printed with 1/255 alpha (invisible). Removing the 1 will print the message in black. P.S. I'm currently overwriting errorhandler for this, but I assume others are also overwriting setColor and see no error messages. --- src/scripts/boot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/boot.lua b/src/scripts/boot.lua index 9130f7355..cd0e28b14 100644 --- a/src/scripts/boot.lua +++ b/src/scripts/boot.lua @@ -673,7 +673,7 @@ function love.errhand(msg) love.graphics.reset() local font = love.graphics.setNewFont(14) - love.graphics.setColor(1, 1, 1, 1) + love.graphics.setColor(1, 1, 1) local trace = debug.traceback() From da644085e476221ba6017b72859c8526db355c8f Mon Sep 17 00:00:00 2001 From: Cartread <69614530+Cartread@users.noreply.github.com> Date: Sat, 15 Aug 2020 22:57:30 -0400 Subject: [PATCH 2/2] Update boot.lua.h --- src/scripts/boot.lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/boot.lua.h b/src/scripts/boot.lua.h index efa2ee738..8f759af78 100644 --- a/src/scripts/boot.lua.h +++ b/src/scripts/boot.lua.h @@ -1347,7 +1347,7 @@ const unsigned char boot_lua[] = 0x6e, 0x74, 0x28, 0x31, 0x34, 0x29, 0x0a, 0x0a, 0x09, 0x6c, 0x6f, 0x76, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x73, 0x2e, 0x73, 0x65, 0x74, - 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x31, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x31, 0x29, 0x0a, + 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x28, 0x31, 0x2c, 0x20, 0x31, 0x2c, 0x20, 0x31, 0x29, 0x0a, 0x0a, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x74, 0x72, 0x61, 0x63, 0x65, 0x20, 0x3d, 0x20, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x28, 0x29, 0x0a,