Should fix MSVC 2003 build failure

This commit is contained in:
Zlika 2018-05-01 13:17:38 +02:00
parent 804b1a521e
commit 3aac3e36c9
3 changed files with 6 additions and 6 deletions

View File

@ -421,13 +421,13 @@ size_t retro_serialize_size(void)
bool retro_serialize(void *data, size_t size)
{
savestate_to_mem(data);
savestate_to_mem((uint8_t *)data);
return true;
}
bool retro_unserialize(const void *data, size_t size)
{
loadstate_from_mem(data);
loadstate_from_mem((uint8_t *)data);
return true;
}

View File

@ -701,7 +701,7 @@ static void setvideomode(int t){
#include <errno.h>
#include <string.h>
void savestate_to_mem(void *data)
void savestate_to_mem(uint8_t *data)
{
int offset = 0;
memcpy(data+offset, &app_data.crc, sizeof(app_data.crc));
@ -751,7 +751,7 @@ void savestate_to_mem(void *data)
memcpy(data+offset, &tirq_pend, sizeof(tirq_pend));
}
void loadstate_from_mem(const void *data)
void loadstate_from_mem(const uint8_t *data)
{
int offset = 0;
memcpy(&app_data.crc, data+offset, sizeof(app_data.crc));

View File

@ -5,8 +5,8 @@
#ifdef __LIBRETRO__
#define STATE_SIZE sizeof(app_data.crc)+sizeof(app_data.bios)+256+256+64+sizeof(pc)+sizeof(sp)+sizeof(bs)+sizeof(p1)+sizeof(p2)+sizeof(ac)+sizeof(cy)+sizeof(f0)+sizeof(A11)+sizeof(A11ff)+sizeof(timer_on)+sizeof(timer_on)+sizeof(reg_pnt)+sizeof(tirq_en)+sizeof(xirq_en)+sizeof(xirq_pend)+sizeof(tirq_pend)
void savestate_to_mem(void *data);
void loadstate_from_mem(const void *data);
void savestate_to_mem(uint8_t *data);
void loadstate_from_mem(const uint8_t *data);
#endif
#define LINECNT 21