Skip to content

Commit

Permalink
Test-37
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Dec 7, 2024
1 parent e50e81f commit a80954c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions far/src/plug/plugapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<intptr_t>(Param1));
return TRUE;
Expand Down
4 changes: 3 additions & 1 deletion luafar/src/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit a80954c

Please sign in to comment.