(XDK) Build fixes

This commit is contained in:
twinaphex 2014-12-23 20:34:04 +01:00
parent 7cea69a209
commit 3b3eae18e7
3 changed files with 628 additions and 622 deletions

View File

@ -1150,9 +1150,10 @@ static uint32_t decode_cheat(char *string, int index)
static void apply_cheats(void) static void apply_cheats(void)
{ {
uint8_t *ptr; uint8_t *ptr;
int i;
/* clear ROM&RAM patches counter */ /* clear ROM&RAM patches counter */
maxROMcheats = maxRAMcheats = 0; maxROMcheats = maxRAMcheats = 0;
int i;
for (i = 0; i < maxcheats; i++) for (i = 0; i < maxcheats; i++)
{ {
if (cheatlist[i].enable) if (cheatlist[i].enable)
@ -1777,6 +1778,8 @@ void *retro_get_memory_data(unsigned id)
size_t retro_get_memory_size(unsigned id) size_t retro_get_memory_size(unsigned id)
{ {
int i;
if (!sram.on) if (!sram.on)
return 0; return 0;
@ -1794,7 +1797,6 @@ size_t retro_get_memory_size(unsigned id)
/* otherwise, we assume this is for saving and we need to check if SRAM data has been modified */ /* otherwise, we assume this is for saving and we need to check if SRAM data has been modified */
/* this is obviously not %100 safe since the frontend could still be trying to load SRAM while emulation is running */ /* this is obviously not %100 safe since the frontend could still be trying to load SRAM while emulation is running */
/* a better solution would be that the frontend itself checks if data has been modified before writing it to a file */ /* a better solution would be that the frontend itself checks if data has been modified before writing it to a file */
int i;
for (i=0xffff; i>=0; i--) for (i=0xffff; i>=0; i--)
{ {
if (sram.sram[i] != 0xff) if (sram.sram[i] != 0xff)

View File

@ -102,6 +102,7 @@
<ClCompile Include="..\..\..\core\genesis.c" /> <ClCompile Include="..\..\..\core\genesis.c" />
<ClCompile Include="..\..\..\core\input_hw\activator.c" /> <ClCompile Include="..\..\..\core\input_hw\activator.c" />
<ClCompile Include="..\..\..\core\input_hw\gamepad.c" /> <ClCompile Include="..\..\..\core\input_hw\gamepad.c" />
<ClCompile Include="..\..\..\core\input_hw\graphic_board.c" />
<ClCompile Include="..\..\..\core\input_hw\input.c" /> <ClCompile Include="..\..\..\core\input_hw\input.c" />
<ClCompile Include="..\..\..\core\input_hw\lightgun.c" /> <ClCompile Include="..\..\..\core\input_hw\lightgun.c" />
<ClCompile Include="..\..\..\core\input_hw\mouse.c" /> <ClCompile Include="..\..\..\core\input_hw\mouse.c" />
@ -109,7 +110,7 @@
<ClCompile Include="..\..\..\core\input_hw\sportspad.c" /> <ClCompile Include="..\..\..\core\input_hw\sportspad.c" />
<ClCompile Include="..\..\..\core\input_hw\teamplayer.c" /> <ClCompile Include="..\..\..\core\input_hw\teamplayer.c" />
<ClCompile Include="..\..\..\core\input_hw\terebi_oekaki.c" /> <ClCompile Include="..\..\..\core\input_hw\terebi_oekaki.c" />
<ClCompile Include="..\..\..\core\input_hw\xe_a1p.c" /> <ClCompile Include="..\..\..\core\input_hw\xe_1ap.c" />
<ClCompile Include="..\..\..\core\io_ctrl.c" /> <ClCompile Include="..\..\..\core\io_ctrl.c" />
<ClCompile Include="..\..\..\core\loadrom.c" /> <ClCompile Include="..\..\..\core\loadrom.c" />
<ClCompile Include="..\..\..\core\m68k\m68kcpu.c"> <ClCompile Include="..\..\..\core\m68k\m68kcpu.c">

View File

@ -104,9 +104,6 @@
<ClCompile Include="..\..\libretro.c"> <ClCompile Include="..\..\libretro.c">
<Filter>Source Files\libretro</Filter> <Filter>Source Files\libretro</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\core\input_hw\xe_a1p.c">
<Filter>Source Files\input_hw</Filter>
</ClCompile>
<ClCompile Include="..\..\..\core\input_hw\activator.c"> <ClCompile Include="..\..\..\core\input_hw\activator.c">
<Filter>Source Files\input_hw</Filter> <Filter>Source Files\input_hw</Filter>
</ClCompile> </ClCompile>
@ -230,5 +227,11 @@
<ClCompile Include="..\..\..\core\tremor\vorbisfile.c"> <ClCompile Include="..\..\..\core\tremor\vorbisfile.c">
<Filter>Source Files\tremor</Filter> <Filter>Source Files\tremor</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\core\input_hw\graphic_board.c">
<Filter>Source Files\input_hw</Filter>
</ClCompile>
<ClCompile Include="..\..\..\core\input_hw\xe_1ap.c">
<Filter>Source Files\input_hw</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
</Project> </Project>