(movie.c) Style nits

This commit is contained in:
twinaphex 2015-04-01 18:32:40 +02:00
parent fed283ffd7
commit a93986610b

View File

@ -50,6 +50,7 @@ static bool init_playback(bsv_movie_t *handle, const char *path)
handle->playback = true;
handle->file = fopen(path, "rb");
if (!handle->file)
{
RARCH_ERR("Couldn't open BSV file \"%s\" for playback.\n", path);
@ -113,16 +114,13 @@ static bool init_record(bsv_movie_t *handle, const char *path)
return false;
}
/* This value is supposed to show up as
* BSV1 in a HEX editor, big-endian. */
header[MAGIC_INDEX] = swap_if_little32(BSV_MAGIC);
header[CRC_INDEX] = swap_if_big32(global->content_crc);
state_size = pretro_serialize_size();
header[STATE_SIZE_INDEX] = swap_if_big32(state_size);
fwrite(header, 4, sizeof(uint32_t), handle->file);
handle->min_file_pos = sizeof(header) + state_size;