OpenTTD
gamelog.h
Go to the documentation of this file.
1 /* $Id: gamelog.h 23901 2012-02-05 15:51:13Z smatz $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef GAMELOG_H
13 #define GAMELOG_H
14 
15 #include "newgrf_config.h"
16 
27  GLAT_NONE = 0xFF,
28 };
29 
31 void GamelogStopAction();
32 
33 void GamelogFree(struct LoggedAction *gamelog_action, uint gamelog_actions);
34 void GamelogReset();
35 
40 typedef void GamelogPrintProc(const char *s);
41 void GamelogPrint(GamelogPrintProc *proc); // needed for WIN32 / WINCE crash.log
42 
43 void GamelogPrintDebug(int level);
44 void GamelogPrintConsole();
45 
46 void GamelogEmergency();
48 
49 void GamelogRevision();
50 void GamelogMode();
51 void GamelogOldver();
52 void GamelogSetting(const char *name, int32 oldval, int32 newval);
53 
54 void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg);
55 void GamelogGRFAddList(const GRFConfig *newg);
56 void GamelogGRFRemove(uint32 grfid);
57 void GamelogGRFAdd(const GRFConfig *newg);
58 void GamelogGRFCompatible(const GRFIdentifier *newg);
59 
60 void GamelogTestRevision();
61 void GamelogTestMode();
62 
63 bool GamelogGRFBugReverse(uint32 grfid, uint16 internal_id);
64 
65 void GamelogInfo(struct LoggedAction *gamelog_action, uint gamelog_actions, uint32 *last_ottd_rev, byte *ever_modified, bool *removed_newgrfs);
66 
67 #endif /* GAMELOG_H */