d074cc7c07
Plugin: ns7zip v2.0.0 Architectures: x86-ansi, x86-unicode, amd64-unicode License: LGPL-2.1-or-later
32 lines
368 B
C++
32 lines
368 B
C++
// ConsoleClose.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "NSISBreak.h"
|
|
|
|
static int g_BreakCounter = 0;
|
|
|
|
namespace NNSISBreak {
|
|
|
|
void SendBreakSignal()
|
|
{
|
|
g_BreakCounter++;
|
|
}
|
|
|
|
bool TestBreakSignal()
|
|
{
|
|
/*
|
|
if (g_BreakCounter > 0)
|
|
return true;
|
|
*/
|
|
return (g_BreakCounter > 0);
|
|
}
|
|
|
|
void CheckCtrlBreak()
|
|
{
|
|
if (TestBreakSignal())
|
|
throw CCtrlBreakException();
|
|
}
|
|
|
|
}
|