Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
b1e8f08e
Commit
b1e8f08e
authored
Jan 08, 2010
by
Max-Wilhelm Bruker
Browse files
save server output to a file
parent
ce4f8e20
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/main.cpp
View file @
b1e8f08e
...
@@ -22,8 +22,19 @@
...
@@ -22,8 +22,19 @@
#include
<QTextCodec>
#include
<QTextCodec>
#include
"servatrice.h"
#include
"servatrice.h"
void
myMessageOutput
(
QtMsgType
/*type*/
,
const
char
*
msg
)
{
static
FILE
*
f
=
NULL
;
if
(
!
f
)
f
=
fopen
(
"qdebug.txt"
,
"w"
);
fprintf
(
f
,
"%s
\n
"
,
msg
);
fflush
(
f
);
}
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
qInstallMsgHandler
(
myMessageOutput
);
QCoreApplication
app
(
argc
,
argv
);
QCoreApplication
app
(
argc
,
argv
);
app
.
setOrganizationName
(
"Cockatrice"
);
app
.
setOrganizationName
(
"Cockatrice"
);
app
.
setApplicationName
(
"Servatrice"
);
app
.
setApplicationName
(
"Servatrice"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment