OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
30 void GamelogStopAnyAction();
64 void GamelogInfo(
struct LoggedAction *gamelog_action, uint gamelog_actions, uint32 *last_ottd_rev,
byte *ever_modified,
bool *removed_newgrfs);
void GamelogGRFRemove(uint32 grfid)
Logs removal of a GRF.
void GamelogPrintDebug(int level)
Prints gamelog to debug output.
void GamelogPrintProc(const char *s)
Callback for printing text.
void GamelogFree(struct LoggedAction *gamelog_action, uint gamelog_actions)
Frees the memory allocated by a gamelog.
void GamelogRevision()
Logs a change in game revision.
void GamelogPrint(GamelogPrintProc *proc)
Prints active gamelog.
void GamelogGRFAdd(const GRFConfig *newg)
Logs adding of a GRF.
void GamelogStartAction(GamelogActionType at)
Stores information about new action, but doesn't allocate it Action is allocated only when there is a...
@ GLAT_CHEAT
Cheat was used.
void GamelogPrintConsole()
Print the gamelog data to the console.
GamelogActionType
The actions we log.
Basic data to distinguish a GRF.
void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg)
Compares two NewGRF lists and logs any change.
void GamelogSetting(const char *name, int32 oldval, int32 newval)
Logs change in game settings.
void GamelogReset()
Resets and frees all memory allocated - used before loading or starting a new game.
Information about GRF, used in the game and (part of it) in savegames.
bool GamelogGRFBugReverse(uint32 grfid, uint16 internal_id)
Logs GRF bug - rail vehicle has different length after reversing.
@ GLAT_GRFBUG
GRF bug was triggered.
@ GLAT_START
Game created.
void GamelogEmergency()
Logs a emergency savegame.
void GamelogTestMode()
Finds last stored game mode or landscape.
void GamelogStopAction()
Stops logging of any changes.
@ GLAT_EMERGENCY
Emergency savegame.
void GamelogMode()
Logs a change in game mode (scenario editor or game)
@ GLAT_END
So we know how many GLATs are there.
@ GLAT_SETTING
Setting changed.
@ GLAT_NONE
No logging active; in savegames, end of list.
void GamelogTestRevision()
Finds out if current revision is different than last revision stored in the savegame.
void GamelogGRFAddList(const GRFConfig *newg)
Logs adding of list of GRFs.
bool GamelogTestEmergency()
Finds out if current game is a loaded emergency savegame.
void GamelogGRFCompatible(const GRFIdentifier *newg)
Logs loading compatible GRF (the same ID, but different MD5 hash)
void GamelogOldver()
Logs loading from savegame without gamelog.
Contains information about one logged action that caused at least one logged change.
void GamelogInfo(struct LoggedAction *gamelog_action, uint gamelog_actions, uint32 *last_ottd_rev, byte *ever_modified, bool *removed_newgrfs)
Get some basic information from the given gamelog.