MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OutrageMessageBox

Function OutrageMessageBox

misc/error.cpp:236–250  ·  view source on GitHub ↗

Pops up a dialog box to display a message

Source from the content-addressed store, hash-verified

234
235// Pops up a dialog box to display a message
236void OutrageMessageBox(const char *str, ...) {
237 char buf[BUF_LEN];
238 std::va_list arglist;
239 int nchars;
240
241 va_start(arglist, str);
242 nchars = std::vsnprintf(buf, BUF_LEN, str, arglist);
243 va_end(arglist);
244
245 if (nchars >= BUF_LEN)
246 Debug_MessageBox(OSMBOX_OK, Messagebox_title,
247 "The dialog that follows this one overflowed its text buffer. The program may crash.");
248
249 Debug_MessageBox(OSMBOX_OK, Messagebox_title, buf);
250}
251
252int OutrageMessageBox(int type, const char *str, ...) {
253 char buf[BUF_LEN];

Callers 15

mng_MakeLockerFunction · 0.85
mng_EraseLockerFunction · 0.85
mng_OverrideToUnlockedFunction · 0.85
mng_InitTableFilesFunction · 0.85
mng_DisplayLockListFunction · 0.85
OnAddSoundMethod · 0.85
OnCheckinSoundMethod · 0.85
OnDeleteSoundMethod · 0.85
OnLockSoundMethod · 0.85
OnLoadSoundMethod · 0.85
InputSoundNameFunction · 0.85

Calls 1

Debug_MessageBoxFunction · 0.50

Tested by

no test coverage detected