//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// #include #include #include "BsEditorApplication.h" #include "Error/BsCrashHandler.h" #if BS_PLATFORM == BS_PLATFORM_WIN32 #include using namespace bs; int CALLBACK WinMain( _In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow ) { CrashHandler::startUp(); __try { EditorApplication::startUp(); EditorApplication::instance().runMainLoop(); EditorApplication::shutDown(); } __except (gCrashHandler().reportCrash(GetExceptionInformation())) { PlatformUtility::terminate(true); } CrashHandler::shutDown(); return 0; } #else using namespace bs; int main() { EditorApplication::startUp(); EditorApplication::instance().runMainLoop(); EditorApplication::shutDown(); } #endif // End BS_PLATFORM