MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / enableSDLDialogLogger

Function enableSDLDialogLogger

framework/logger_sdldialog.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31} // namespace
32
33void enableSDLDialogLogger(SDL_Window *win)
34{
35 LogAssert(win);
36 if (parentWindow)
37 {
38 LogError("SDL Dialog already enabled");
39 return;
40 }
41 parentWindow = win;
42 dialogLogLevel = (LogLevel)Options::dialogLogLevelOption.get();
43 previousFunction = getLogCallback();
44 setLogCallback(SDLDialogLogFunction);
45}
46
47} // namespace OpenApoc

Callers 1

FrameworkMethod · 0.85

Calls 3

getLogCallbackFunction · 0.85
setLogCallbackFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected