| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include <iostream>
- #include <stdio.h>
- #include "BsEditorApplication.h"
- #include "Error/BsCrashHandler.h"
- #if BS_PLATFORM == BS_PLATFORM_WIN32
- #include <windows.h>
- 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
|