fix bug about invalid "write debug log to file"

修复：mac版Player在禁用"Show Debug Console"后, "Write Debug Log to File"无效，见 [Issue #221](dualface#221 (comment))