iomap.cpp

main 40 lines · 1.4 KB Raw
Alex Alex Commit Map Editor 18/10/2026 23:40
1//////////////////////////////////////////////////////////////////////
2// This file is part of Remere's Map Editor
3//////////////////////////////////////////////////////////////////////
4// Remere's Map Editor is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Remere's Map Editor is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16//////////////////////////////////////////////////////////////////////
17
18#include "main.h"
19#include "gui.h"
20
21void IOMap::error(const wxString format, ...) {
22 va_list argp;
23 va_start(argp, format);
24 errorstr.PrintfV(format, argp);
25 va_end(argp);
26};
27
28void IOMap::warning(const wxString format, ...) {
29 wxString s;
30 va_list argp;
31 va_start(argp, format);
32 s.PrintfV(format, argp);
33 va_end(argp);
34 warnings.push_back(s);
35};
36
37bool IOMap::queryUser(const wxString& title, const wxString& text) {
38 return g_gui.PopupDialog(title, text, wxYES | wxNO) == wxID_YES;
39}
40
Top