Method

HsCoreget_cache_path

Declaration [src]

char*
hs_core_get_cache_path (
  HsCore* self
)

Description [src]

Gets the path to the cache location.

It can be used for temporary files, cache and so on. Cores should not use any other directories for this purpose.

The core is responsible for creating the cache file/directory if it doesn’t exist.

Note

The frontend may use a shared directory for everything or a separate directory for each game. Do not store per-game data like saves in the cache location.

Return value

Type: char*

The cache path.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.