From d004e9c30acfda06c9baef8ad976fcd909dc32d3 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 6 Dec 2024 16:56:19 -0500 Subject: [PATCH] Ensured LPM_RUN_FROM_GUI is defined. --- src/lpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lpm.c b/src/lpm.c index 189ff7d..bcd394d 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -2008,8 +2008,10 @@ int main(int argc, char* argv[]) { #endif #if _WIN32 lua_pushboolean(L, GetConsoleProcessList(&(DWORD){ 0 }, 1) == 1); - lua_setglobal(L, "LPM_RUN_FROM_GUI"); + #else + lua_pushboolean(L, 0); #endif + lua_setglobal(L, "LPM_RUN_FROM_GUI"); lua_setglobal(L, "TTY"); #if _WIN32 lua_pushliteral(L, "\\");