fix libretro loading.. probably broken since we went 64bits, believe it or not
This commit is contained in:
parent
b5bb68fec5
commit
34d3073346
|
@ -151,8 +151,8 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
public retro_system_info retro_system_info;
|
||||
public retro_system_av_info retro_system_av_info;
|
||||
|
||||
public uint retro_serialize_size_initial; //size_t :(
|
||||
public uint retro_serialize_size; //size_t :(
|
||||
public ulong retro_serialize_size_initial; //size_t :(
|
||||
public ulong retro_serialize_size; //size_t :(
|
||||
|
||||
public uint retro_region;
|
||||
public uint retro_api_version;
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
{
|
||||
Message(eMessage.CMD_UpdateSerializeSize);
|
||||
WaitForCMD();
|
||||
return comm->env.retro_serialize_size;
|
||||
return (uint)comm->env.retro_serialize_size;
|
||||
}
|
||||
|
||||
public bool CMD_Serialize(byte[] data)
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
public sbyte* valid_extensions;
|
||||
public bool need_fullpath;
|
||||
public bool block_extract;
|
||||
public short pad;
|
||||
short _pad;
|
||||
}
|
||||
|
||||
public struct retro_system_timing
|
||||
|
|
|
@ -375,7 +375,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
public void SaveStateBinary(System.IO.BinaryWriter writer)
|
||||
{
|
||||
api.CMD_UpdateSerializeSize();
|
||||
if (savebuff == null || savebuff.Length != api.comm->env.retro_serialize_size)
|
||||
if (savebuff == null || savebuff.Length != (int)api.comm->env.retro_serialize_size)
|
||||
{
|
||||
savebuff = new byte[api.comm->env.retro_serialize_size];
|
||||
savebuff2 = new byte[savebuff.Length + 13];
|
||||
|
@ -406,7 +406,7 @@ namespace BizHawk.Emulation.Cores.Libretro
|
|||
public byte[] SaveStateBinary()
|
||||
{
|
||||
api.CMD_UpdateSerializeSize();
|
||||
if (savebuff == null || savebuff.Length != api.comm->env.retro_serialize_size)
|
||||
if (savebuff == null || savebuff.Length != (int)api.comm->env.retro_serialize_size)
|
||||
{
|
||||
savebuff = new byte[api.comm->env.retro_serialize_size];
|
||||
savebuff2 = new byte[savebuff.Length + 13];
|
||||
|
|
Loading…
Reference in New Issue