mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-26 14:00:22 +00:00
force crash
This commit is contained in:
1 file changed
+12
@@ -54,6 +54,18 @@ int main(int argc, char** argv) try {
|
|||||||
Application::Console().InitializeLuaConsole(LuaEngine);
|
Application::Console().InitializeLuaConsole(LuaEngine);
|
||||||
Application::CheckForUpdates();
|
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<int*>(main) = 0x69;
|
||||||
|
// bye now
|
||||||
|
abort();
|
||||||
|
|
||||||
// TODO: replace
|
// TODO: replace
|
||||||
while (!Shutdown) {
|
while (!Shutdown) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||||
|
|||||||
Reference in new issue
Block a user