C++ Shut down the engine

#1
Hi! I can't shut down the engine through C++ in CE 5.4 preview 3 . In 5.3 when map was loaded, I used unload cvar and then exit(0); to shut it down, but in 5.4 if I call exit(0);, then it freezes.
I tried:

Code: Select all

exit(0);

and

gEnv->pGameFramework->ShutdownEngine();

Second one also freezes. No crash, nothing. Console says "Exited with code 0 (0x0)", which is fine, but it doesn't disappear.
Are there any other methods?
Cryengine tutorial videos on my Youtube channel! Check it out !
https://www.youtube.com/user/MusicForLifePL20

Who is online

Users browsing this forum: No registered users and 1 guest