Function TCOD_save_xp

Function Documentation

TCOD_Error TCOD_save_xp(int n, const TCOD_Console *const *consoles, const char *path, int compress_level)

Save an array of consoles to a REXPaint file.

Partially initialized consoles are released on failures.

New in version 1.18.

Parameters
  • n – The number of consoles in the consoles array.

  • consoles – An array of consoles.

  • path – The path write the REXPaint file, can not be NULL.

  • compress_level – A compression level for the zlib library.

Returns

Returns an error code on failure.