Commit e1248b96 authored by anotherguest's avatar anotherguest

close stdout to keep those logs beeing written properly

parent aceb4015
......@@ -9,6 +9,8 @@
#include <BAUTILS.H>
char KOpenJazzPath[256];
FILE* mystdout = NULL;
FILE *mystderr = NULL;
class COpenJazzApp: public CSDLApp {
public:
......@@ -48,6 +50,12 @@ COpenJazzApp::COpenJazzApp() {
}
COpenJazzApp::~COpenJazzApp() {
fflush(mystdout);
fflush(mystderr);
fflush(stdout);
fflush(stderr);
fclose(stdout);
fclose(stderr);
}
#ifdef UIQ3
#include <OpenJazz.rsg>
......@@ -59,8 +67,7 @@ TInt COpenJazzApp::ViewResourceId() {
return R_SDL_VIEW_UI_CONFIGURATIONS;
}
#endif
FILE* mystdout = NULL;
FILE *mystderr = NULL;
/**
* This has a default empty implementation.
* Is called just before SDL_Main is called to allow init of system vars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment