Fixed #359 crash dump name not compatible with Windows

This commit is contained in:
Shoghi Cervantes 2013-06-09 13:11:55 +02:00
parent 4f10b1cb7c
commit d82399e686
2 changed files with 2 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class PocketMinecraftServer{
$dump .= "\r\nphpinfo(): \r\n".base64_encode(gzdeflate(ob_get_contents(), 9))."\r\n"; $dump .= "\r\nphpinfo(): \r\n".base64_encode(gzdeflate(ob_get_contents(), 9))."\r\n";
ob_end_clean(); ob_end_clean();
$dump .= "\r\n```"; $dump .= "\r\n```";
$name = "Error_Dump_".date("D_M_j-H:i:s-T_Y"); $name = "Error_Dump_".date("D_M_j-H.i.s-T_Y");
logg($dump, $name, true, 0, true); logg($dump, $name, true, 0, true);
console("[ERROR] Please submit the \"{$name}.log\" file to the Bug Reporting page. Give as much info as you can.", true, true, 0); console("[ERROR] Please submit the \"{$name}.log\" file to the Bug Reporting page. Give as much info as you can.", true, true, 0);
} }

View File

@ -37,6 +37,7 @@ define("VIEWER", 3);
//Players //Players
define("PLAYER_RECOVERY_BUFFER", 1024);
define("PLAYER_MAX_PACKET_LOSS", 0.20); define("PLAYER_MAX_PACKET_LOSS", 0.20);
define("PLAYER_SURVIVAL_SLOTS", 36); define("PLAYER_SURVIVAL_SLOTS", 36);