|
|
@ -114,7 +114,8 @@ static int (*_SDL_Init)(uint32_t flags) = 0;
|
|
|
|
DFhackCExport int SDL_Init(uint32_t flags)
|
|
|
|
DFhackCExport int SDL_Init(uint32_t flags)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// reroute stderr
|
|
|
|
// reroute stderr
|
|
|
|
freopen("stderr.log", "w", stderr);
|
|
|
|
if (!freopen("stderr.log", "w", stderr))
|
|
|
|
|
|
|
|
fprintf(stderr, "dfhack: failed to reroute stderr\n");
|
|
|
|
// we don't reroute stdout until we figure out if this should be done at all
|
|
|
|
// we don't reroute stdout until we figure out if this should be done at all
|
|
|
|
// See: Console-linux.cpp
|
|
|
|
// See: Console-linux.cpp
|
|
|
|
|
|
|
|
|
|
|
|