This is more of a annoyance then anything else. I have multiple times closed a CE window with Injections Active that resulted in having to restart the game.

Updated to allow for native CE onclose event to be handled.
--This event closes CE child windows, turns off speedhack & other things. Thanks to mgr.inz for the explanation of why "closeCE" doesnt do all this to begin with. Now if he would only remove the code in his second post. For the sake of confusion.

So Here is a lightweight simple extension to "Ask" what you want to do if
injections are active and the process is attached.

-- check if there is opened process
if readInteger(openedProcess) == nil then Ask_Cheats_Off_OrigOnClose(sender); return caFree end

for i=0,list.Count-1 do
if list[i].Active and (list[i].Type == vtAutoAssembler) then
D[1+#D] = list[i].Description
end
end

if #D > 0 then -- there are active AA scripts
local A = messageDialog(#D.." scripts are still active:\n\n"..table.concat (D,'\n')..
"\n\nDo you wish to deactivate them before close?", mtConfirmation, mbYes, mbNo, mbCancel)

if A == mrYes then
for i=list.Count-1,0,-1 do
list[i].Active = false -- deactivate (and also unfreeze, but, we do not care)
end
Ask_Cheats_Off_OrigOnClose(sender)
return caFree
elseif A == mrNo then
Ask_Cheats_Off_OrigOnClose(sender)
return caFree
end

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum