OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
30 void GamelogStopAnyAction();
51 void GamelogSetting(
const std::string &name, int32 oldval, int32 newval);
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 GamelogSetting(const std::string &name, int32 oldval, int32 newval)
Logs change in game settings.
void GamelogStartAction(GamelogActionType at)
Stores information about new action, but doesn't allocate it Action is allocated only when there is a...
@ GLAT_SETTING
Setting changed.
void GamelogPrintConsole()
Print the gamelog data to the console.
Basic data to distinguish a GRF.
void GamelogGRFUpdate(const GRFConfig *oldg, const GRFConfig *newg)
Compares two NewGRF lists and logs any change.
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_NONE
No logging active; in savegames, end of list.
void GamelogEmergency()
Logs a emergency savegame.
void GamelogTestMode()
Finds last stored game mode or landscape.
@ GLAT_EMERGENCY
Emergency savegame.
void GamelogStopAction()
Stops logging of any changes.
void GamelogMode()
Logs a change in game mode (scenario editor or game)
@ GLAT_CHEAT
Cheat was used.
@ GLAT_GRFBUG
GRF bug was triggered.
@ GLAT_END
So we know how many GLATs are there.
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)
GamelogActionType
The actions we log.
void GamelogOldver()
Logs loading from savegame without gamelog.
@ GLAT_START
Game created.
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.