smatz@10824: /* $Id$ */ smatz@10824: smatz@10824: /** @file gamelog.h Functions to be called to log possibly unsafe game events */ smatz@10824: smatz@10824: #ifndef GAMELOG_H smatz@10824: #define GAMELOG_H smatz@10824: smatz@10824: #include "newgrf_config.h" smatz@10824: smatz@10824: enum GamelogActionType { smatz@10824: GLAT_START, ///< Game created smatz@10824: GLAT_LOAD, ///< Game loaded smatz@10824: GLAT_GRF, ///< GRF changed smatz@10824: GLAT_CHEAT, ///< Cheat was used smatz@10824: GLAT_PATCH, ///< Patches setting changed smatz@10824: GLAT_END, ///< So we know how many GLATs are there smatz@10824: GLAT_NONE = 0xFF, ///< No logging active; in savegames, end of list smatz@10824: }; smatz@10824: smatz@10824: void GamelogStartAction(GamelogActionType at); smatz@10824: void GamelogStopAction(); smatz@10824: smatz@10824: void GamelogReset(); smatz@10824: smatz@10824: typedef void GamelogPrintProc(const char *s); smatz@10824: void GamelogPrint(GamelogPrintProc *proc); // needed for WIN32 / WINCE crash.log smatz@10824: smatz@10824: void GamelogPrintDebug(); smatz@10824: void GamelogPrintConsole(); smatz@10824: smatz@10824: void GamelogRevision(); smatz@10824: void GamelogMode(); smatz@10824: void GamelogOldver(); smatz@10824: void GamelogPatch(const char *name, int32 oldval, int32 newval); smatz@10824: smatz@10824: void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg); smatz@10824: void GamelogGRFAddList(const GRFConfig *newg); smatz@10824: void GamelogGRFRemove(uint32 grfid); smatz@10824: void GamelogGRFAdd(const GRFConfig *newg); smatz@10824: void GamelogGRFCompatible(const GRFIdentifier *newg); smatz@10824: smatz@10824: void GamelogTestRevision(); smatz@10824: void GamelogTestMode(); smatz@10824: void GamelogTestGRF(); smatz@10824: smatz@10824: #endif /* GAMELOG_H */