mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 03:40:43 +00:00
(movie.c) Style nits
This commit is contained in:
parent
fed283ffd7
commit
a93986610b
6
movie.c
6
movie.c
@ -50,6 +50,7 @@ static bool init_playback(bsv_movie_t *handle, const char *path)
|
|||||||
|
|
||||||
handle->playback = true;
|
handle->playback = true;
|
||||||
handle->file = fopen(path, "rb");
|
handle->file = fopen(path, "rb");
|
||||||
|
|
||||||
if (!handle->file)
|
if (!handle->file)
|
||||||
{
|
{
|
||||||
RARCH_ERR("Couldn't open BSV file \"%s\" for playback.\n", path);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* This value is supposed to show up as
|
/* This value is supposed to show up as
|
||||||
* BSV1 in a HEX editor, big-endian. */
|
* BSV1 in a HEX editor, big-endian. */
|
||||||
header[MAGIC_INDEX] = swap_if_little32(BSV_MAGIC);
|
header[MAGIC_INDEX] = swap_if_little32(BSV_MAGIC);
|
||||||
|
|
||||||
header[CRC_INDEX] = swap_if_big32(global->content_crc);
|
header[CRC_INDEX] = swap_if_big32(global->content_crc);
|
||||||
|
|
||||||
state_size = pretro_serialize_size();
|
state_size = pretro_serialize_size();
|
||||||
|
|
||||||
header[STATE_SIZE_INDEX] = swap_if_big32(state_size);
|
header[STATE_SIZE_INDEX] = swap_if_big32(state_size);
|
||||||
|
|
||||||
fwrite(header, 4, sizeof(uint32_t), handle->file);
|
fwrite(header, 4, sizeof(uint32_t), handle->file);
|
||||||
|
|
||||||
handle->min_file_pos = sizeof(header) + state_size;
|
handle->min_file_pos = sizeof(header) + state_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user