From a80954cbb2ec1c86ab25403510e2c6091d5035d7 Mon Sep 17 00:00:00 2001 From: Shmuel Zeigerman Date: Sat, 7 Dec 2024 14:48:29 +0200 Subject: [PATCH] Test-37 --- far/src/plug/plugapi.cpp | 1 + luafar/src/service.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/far/src/plug/plugapi.cpp b/far/src/plug/plugapi.cpp index e2381fb25..df7207ae2 100644 --- a/far/src/plug/plugapi.cpp +++ b/far/src/plug/plugapi.cpp @@ -670,6 +670,7 @@ static INT_PTR WINAPI FarAdvControlSynched(INT_PTR ModuleNumber, int Command, vo } case ACTL_QUIT: { + fprintf(stderr, "far2m ACTL_QUIT, param=%d\n", (int)(intptr_t)Param1); CloseFARMenu = TRUE; FrameManager->ExitMainLoop(false, reinterpret_cast(Param1)); return TRUE; diff --git a/luafar/src/service.c b/luafar/src/service.c index c41e6b1f8..fe311c0b2 100644 --- a/luafar/src/service.c +++ b/luafar/src/service.c @@ -4721,7 +4721,9 @@ static int DoAdvControl (lua_State *L, int Command, int Delta) return lua_pushinteger(L, int1), 1; case ACTL_QUIT: - int1 = PSInfo.AdvControl(pd->ModuleNumber, Command, (void*)luaL_optinteger(L,pos2,0), NULL); + int1 = luaL_optinteger(L,pos2,0); + fprintf(stderr, "luafar ACTL_QUIT, param=%d\n", (int)int1); + int1 = PSInfo.AdvControl(pd->ModuleNumber, Command, (void*)int1, NULL); return lua_pushinteger(L, int1), 1; case ACTL_GETCOLOR: {