| 567 | } |
| 568 | |
| 569 | bool SetLogFile(const char* path) |
| 570 | { |
| 571 | if (g_LogFile) { |
| 572 | fclose(g_LogFile); |
| 573 | g_LogFile = 0; |
| 574 | } |
| 575 | g_LogFile = fopen(path, "wb"); |
| 576 | if (g_LogFile) { |
| 577 | dmLogInfo("Writing log to: %s", path); |
| 578 | } else { |
| 579 | dmLogFatal("Failed to open log-file '%s'", path); |
| 580 | return false; |
| 581 | } |
| 582 | return true; |
| 583 | } |
| 584 | |
| 585 | #if defined(_WIN32) |
| 586 |
no outgoing calls