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