From 54fa1da1badd598642bb21fafcef025591b4731c Mon Sep 17 00:00:00 2001 From: sprunk Date: Sat, 6 Apr 2024 19:20:34 +0200 Subject: [PATCH] Look for `devmode.txt.txt` as well Zoomers struggle with file extensions since modern Windows hides them by default. Also `VFS.FileExists` already returns a bool so no need for that "x and true or false" idiom. --- LuaMenu/widgets/chobby/components/configuration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaMenu/widgets/chobby/components/configuration.lua b/LuaMenu/widgets/chobby/components/configuration.lua index f113da71f..481db5111 100644 --- a/LuaMenu/widgets/chobby/components/configuration.lua +++ b/LuaMenu/widgets/chobby/components/configuration.lua @@ -216,7 +216,7 @@ function Configuration:init() self.friendNotifyIngame = true self.simplifiedSkirmishSetup = true self.debugMode = false - self.devMode = (VFS.FileExists("devmode.txt") and true) or false + self.devMode = VFS.FileExists("devmode.txt") or VFS.FileExists("devmode.txt.txt") self.debugRawMessages = false self.enableProfiler = false self.showPlanetUnlocks = false