feat: instantiate and delete proxy, add win+c handler

This commit is contained in:
2026-03-20 05:02:58 -03:00
parent 8cc1991325
commit e03dcad4fe
+25
View File
@@ -1,4 +1,29 @@
#include "proxy.h"
#include <nerutils/log.h>
int main()
{
Log::createConsole();
SetConsoleCtrlHandler(consoleHandler, TRUE);
Log::info("Unlocker init");
Log::verbose("Starting proxy");
Proxy* proxy = new Proxy();
if (!proxy->Init())
{
Log::error("Proxy failed to start");
return 1;
}
Log::verbose("Proxy running (CTRL+C to stop)");
while (running)
Sleep(100);
Log::verbose("Shutting down proxy");
proxy->Shutdown();
delete proxy;
return 0;
}