File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ static void open_trace_file(void)
180
180
// stderr will be redirected to xcode's debug console though, so
181
181
// it's as good to use as the NSLog stuff.
182
182
trace_info .trace_file = stderr ;
183
- #elif defined(ALLEGRO_WINDOWS )
183
+ #elif defined(ALLEGRO_ANDROID )
184
184
trace_info .trace_file = NULL ;
185
185
#else
186
186
trace_info .trace_file = fopen ("allegro.log" , "w" );
@@ -207,7 +207,7 @@ static void do_trace(const char *msg, ...)
207
207
msg , ap );
208
208
va_end (ap );
209
209
}
210
- else if (trace_info .trace_file ) {
210
+ if (! _al_user_trace_handler && trace_info .trace_file ) {
211
211
va_start (ap , msg );
212
212
vfprintf (trace_info .trace_file , msg , ap );
213
213
va_end (ap );
@@ -333,7 +333,7 @@ void _al_trace_suffix(const char *msg, ...)
333
333
#endif
334
334
static_trace_buffer [0 ] = '\0' ;
335
335
}
336
- else if (trace_info .trace_file ) {
336
+ if (! _al_user_trace_handler && trace_info .trace_file ) {
337
337
va_start (ap , msg );
338
338
vfprintf (trace_info .trace_file , msg , ap );
339
339
va_end (ap );
You can’t perform that action at this time.
0 commit comments