Include separator indication in the log after reboot.

This commit is contained in:
RadWolfie 2018-08-16 16:30:23 -05:00
parent cb871d8957
commit fa3327245f
1 changed files with 6 additions and 0 deletions

View File

@ -912,6 +912,12 @@ void CxbxKrnlMain(int argc, char* argv[])
if (DbgMode == DM_FILE) {
// Peform clean write to kernel log for first boot. Unless multi-xbe boot occur then perform append to existing log.
freopen(DebugFileName.c_str(), ((BootFlags == DebugMode::DM_NONE) ? "wt" : "at"), stdout);
// Append separator for better readability after reboot.
if (BootFlags != DebugMode::DM_NONE) {
std::cout << " " << std::endl
<< "\/\/\/REBOOT\/\/\/REBOOT\/\/\/REBOOT\/\/\/REBOOT\/\/\/REBOOT\/\/\/" << std::endl
<< " " << std::endl;
}
}
else {
char buffer[16];