mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 04:21:19 +00:00
content_flush_save_blocks - cleanup
This commit is contained in:
parent
dad9a079c7
commit
4db42db980
@ -400,14 +400,14 @@ static void content_flush_save_blocks(struct sram_block **blocks,
|
||||
|
||||
/* Flush back. */
|
||||
for (i = 0; i < num_blocks; i++)
|
||||
{
|
||||
struct sram_block *block = (struct sram_block*)&blocks[i];
|
||||
|
||||
if (block->data)
|
||||
{
|
||||
retro_ctx_memory_info_t mem_info;
|
||||
const void *src = NULL;
|
||||
void *dst = NULL;
|
||||
struct sram_block *block = (struct sram_block*)&blocks[i];
|
||||
|
||||
if (!block->data)
|
||||
continue;
|
||||
|
||||
mem_info.id = block->type;
|
||||
|
||||
@ -418,7 +418,6 @@ static void content_flush_save_blocks(struct sram_block **blocks,
|
||||
if (dst)
|
||||
memcpy(dst, src, block->size);
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < num_blocks; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user