| Top |
| GvaInputFile * | gva_input_file_new () |
| gboolean | gva_input_file_read () |
| GvaProcess * | gva_input_file_play_back () |
| const gchar * | gva_input_file_get_filename () |
| const gchar * | gva_input_file_get_format () |
| const gchar * | gva_input_file_get_game () |
| const gchar * | gva_input_file_get_origin () |
| time_t | gva_input_file_get_timestamp () |
A GvaInputFile provides metadata about a MAME INP file. It handles both current and historical INP formats.
GvaInputFile *
gva_input_file_new (const gchar *filename);
Creates a new GvaInputFile for the given filename
.
gboolean gva_input_file_read (GvaInputFile *input_file,GError **error);
Reads header information from a MAME INP file. The information is
made available through the various accessor functions. If an error
occurs while reading, the function returns FALSE and sets error
.
GvaProcess * gva_input_file_play_back (GvaInputFile *input_file,GError **error);
Begins play back of input_file
and returns the resulting GvaProcess.
If an error occurs, it returns NULL and sets error
.
const gchar *
gva_input_file_get_filename (GvaInputFile *input_file);
Returns the filename for input_file
.
const gchar *
gva_input_file_get_format (GvaInputFile *input_file);
Returns a description of the INP header format. Possible formats are "INP simple format", "INP extended format", and "INP version x.y".
const gchar *
gva_input_file_get_game (GvaInputFile *input_file);
Returns the corresponding ROM name for input_file
.
const gchar *
gva_input_file_get_origin (GvaInputFile *input_file);
Returns a description of the MAME program that recorded the INP file.
time_t
gva_input_file_get_timestamp (GvaInputFile *input_file);
Returns an approximation of when the game recording began.
“filename” property“filename” gchar *
The name of the input file.
Flags: Read / Write / Construct Only
Default value: NULL
“format” property“format” gchar *
The format of the input file.
Flags: Read
Default value: NULL
“game” property“game” gchar *
The corresponding ROM name for the input file.
Flags: Read
Default value: NULL
“origin” property“origin” gchar *
The version of MAME that recorded the input file.
Flags: Read
Default value: NULL
“timestamp” property“timestamp” gint64
The creation timestamp for the input file.
Flags: Read
Default value: 0