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
29d11456
Commit
29d11456
authored
Nov 17, 2010
by
Max-Wilhelm Bruker
Browse files
server shouldn't write detailed debugging file any more
parent
754c67fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/main.cpp
View file @
29d11456
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
RNG_Abstract
*
rng
;
RNG_Abstract
*
rng
;
void
myMessageOutput
(
QtMsgType
/*type*/
,
const
char
*
msg
)
//
void myMessageOutput(QtMsgType /*type*/, const char *msg)
{
//
{
static
FILE
*
f
=
NULL
;
//
static FILE *f = NULL;
if
(
!
f
)
//
if (!f)
f
=
fopen
(
"qdebug.txt"
,
"w"
);
//
f = fopen("qdebug.txt", "w");
fprintf
(
f
,
"%s
\n
"
,
msg
);
//
fprintf(f, "%s\n", msg);
fflush
(
f
);
//
fflush(f);
}
//
}
void
testRNG
()
void
testRNG
()
{
{
...
@@ -71,7 +71,7 @@ void testRNG()
...
@@ -71,7 +71,7 @@ void testRNG()
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
qInstallMsgHandler
(
myMessageOutput
);
//
qInstallMsgHandler(myMessageOutput);
QCoreApplication
app
(
argc
,
argv
);
QCoreApplication
app
(
argc
,
argv
);
app
.
setOrganizationName
(
"Cockatrice"
);
app
.
setOrganizationName
(
"Cockatrice"
);
...
...
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