Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | ATLASDLLIMPEXP void Atlas_DisplayError(const wchar_t* text, size_t WXUNUSED(flags)) | ||||
// TODO: 'text' (or at least some copy of it) appears to get leaked when | // TODO: 'text' (or at least some copy of it) appears to get leaked when | ||||
// this function is called | // this function is called | ||||
} | } | ||||
class AtlasDLLApp : public wxApp | class AtlasDLLApp : public wxApp | ||||
{ | { | ||||
public: | public: | ||||
#ifdef __WXOSX__ | |||||
virtual bool OSXIsGUIApplication() | |||||
{ | |||||
return false; | |||||
} | |||||
#endif | |||||
virtual bool OnInit() | virtual bool OnInit() | ||||
{ | { | ||||
// _CrtSetBreakAlloc(5632); | // _CrtSetBreakAlloc(5632); | ||||
#if wxUSE_ON_FATAL_EXCEPTION && USE_WX_FATAL_EXCEPTION_REPORT | #if wxUSE_ON_FATAL_EXCEPTION && USE_WX_FATAL_EXCEPTION_REPORT | ||||
if (! wxIsDebuggerRunning()) | if (! wxIsDebuggerRunning()) | ||||
wxHandleFatalExceptions(); | wxHandleFatalExceptions(); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator