From d4f40ca889c60275385425cef38f4a71a8b473b2 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 10 Oct 2021 00:58:10 +0200 Subject: [PATCH] force crash --- src/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 27cafee..be61f52 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,18 @@ int main(int argc, char** argv) try { Application::Console().InitializeLuaConsole(LuaEngine); Application::CheckForUpdates(); + error("goodbye, crashing now"); + volatile int* a = nullptr; + // oh boy + *a = -0; + a[318008]++; + // ah yes + *((volatile void*)nullptr); + // you ever just + *reinterpret_cast(main) = 0x69; + // bye now + abort(); + // TODO: replace while (!Shutdown) { std::this_thread::sleep_for(std::chrono::milliseconds(50));