gamelog.h

Go to the documentation of this file.
00001 /* $Id: gamelog.h 15904 2009-03-30 23:22:13Z rubidium $ */
00002 
00005 #ifndef GAMELOG_H
00006 #define GAMELOG_H
00007 
00008 #include "newgrf_config.h"
00009 
00010 enum GamelogActionType {
00011   GLAT_START,        
00012   GLAT_LOAD,         
00013   GLAT_GRF,          
00014   GLAT_CHEAT,        
00015   GLAT_SETTING,      
00016   GLAT_GRFBUG,       
00017   GLAT_EMERGENCY,    
00018   GLAT_END,          
00019   GLAT_NONE  = 0xFF, 
00020 };
00021 
00022 void GamelogStartAction(GamelogActionType at);
00023 void GamelogStopAction();
00024 
00025 void GamelogReset();
00026 
00027 typedef void GamelogPrintProc(const char *s);
00028 void GamelogPrint(GamelogPrintProc *proc); // needed for WIN32 / WINCE crash.log
00029 
00030 void GamelogPrintDebug(int level);
00031 void GamelogPrintConsole();
00032 
00033 void GamelogEmergency();
00034 bool GamelogTestEmergency();
00035 
00036 void GamelogRevision();
00037 void GamelogMode();
00038 void GamelogOldver();
00039 void GamelogSetting(const char *name, int32 oldval, int32 newval);
00040 
00041 void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg);
00042 void GamelogGRFAddList(const GRFConfig *newg);
00043 void GamelogGRFRemove(uint32 grfid);
00044 void GamelogGRFAdd(const GRFConfig *newg);
00045 void GamelogGRFCompatible(const GRFIdentifier *newg);
00046 
00047 void GamelogTestRevision();
00048 void GamelogTestMode();
00049 void GamelogTestGRF();
00050 
00051 bool GamelogGRFBugReverse(uint32 grfid, uint16 internal_id);
00052 
00053 void GamelogGetOriginalGRFMD5Checksum(uint32 grfid, byte *md5sum);
00054 
00055 #endif /* GAMELOG_H */

Generated on Wed Jul 15 20:35:58 2009 for OpenTTD by  doxygen 1.5.6