8968d0fd0c
Mirror the 26.00-bundle / 26.01-bundle approach for 25.01:
- versions/25.01-bundle/CPP/7zip/Bundles/Nsis7z/: project-owned NSIS plugin
wrapper sources (api.h, nsis7z.cpp, pluginapi.*, resource.*, StdAfx*,
Nsis7z.sln, Nsis7z.vcxproj, Nsis7z.vcxproj.filters, Nsis7z_vs2026.vcxproj).
- versions/25.01-bundle/CPP/7zip/UI/NSIS/: NSIS UI sources; StdAfx.h patched
to use relative include path and MinGW-compatible Windows.h guard (the
upstream 25.01 file used an absolute path incompatible with the bundle layout).
- versions/25.01-bundle/CPP/7zip/LzmaDec_gcc.mak: forwarding stub.
- versions/25.01-bundle/{C,Asm} and CPP sub-trees: symlinks into versions/25.01/.
- tools/linux/setup_25_01_bundle_symlinks.py: idempotent symlink-recreation script.
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();
|
|
}
|
|
|
|
}
|