Line | |
---|
1 | #include "OgreErrorDialog.h" |
---|
2 | |
---|
3 | using namespace Ogre; |
---|
4 | |
---|
5 | ErrorDialog::ErrorDialog() |
---|
6 | { |
---|
7 | } |
---|
8 | |
---|
9 | void ErrorDialog::display(const String& errorMessage, String logName) |
---|
10 | { |
---|
11 | CFMutableStringRef errorStr = NULL; |
---|
12 | errorStr = CFStringCreateMutable( kCFAllocatorDefault, 0 ); |
---|
13 | CFStringAppendCString( errorStr, "ERROR: ", kCFStringEncodingASCII ); |
---|
14 | CFStringAppendCString( errorStr, errorMessage.c_str(), kCFStringEncodingASCII ); |
---|
15 | DialogRef alertDialod; |
---|
16 | CreateStandardAlert( kAlertStopAlert, errorStr, NULL, NULL, &alertDialod ); |
---|
17 | RunStandardAlert( alertDialod, NULL, NULL ); |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.