mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +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->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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user