// *************************************************************** // Function: CheckForCrash.cpp // *************************************************************** #include "Main.h" //************************************ // Name: CheckForCrash // // Checks the server for crash files. Sets a flag. // // Parameters: // // Return: // - true //************************************ bool CheckForCrash() { ifstream fin("CrashInfo/CrashLog.txt"); if (!fin.fail()) { gServerConfig.serverHasCrashed=true; fin.close(); } else { gServerConfig.serverHasCrashed=false; } return true; }