mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-12 19:29:07 +01:00
(XDK) Build fixes
This commit is contained in:
parent
7cea69a209
commit
3b3eae18e7
@ -1150,9 +1150,10 @@ static uint32_t decode_cheat(char *string, int index)
|
||||
static void apply_cheats(void)
|
||||
{
|
||||
uint8_t *ptr;
|
||||
int i;
|
||||
/* clear ROM&RAM patches counter */
|
||||
maxROMcheats = maxRAMcheats = 0;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < maxcheats; i++)
|
||||
{
|
||||
if (cheatlist[i].enable)
|
||||
@ -1777,6 +1778,8 @@ void *retro_get_memory_data(unsigned id)
|
||||
|
||||
size_t retro_get_memory_size(unsigned id)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!sram.on)
|
||||
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 */
|
||||
/* 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 */
|
||||
int i;
|
||||
for (i=0xffff; i>=0; i--)
|
||||
{
|
||||
if (sram.sram[i] != 0xff)
|
||||
|
@ -102,6 +102,7 @@
|
||||
<ClCompile Include="..\..\..\core\genesis.c" />
|
||||
<ClCompile Include="..\..\..\core\input_hw\activator.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\lightgun.c" />
|
||||
<ClCompile Include="..\..\..\core\input_hw\mouse.c" />
|
||||
@ -109,7 +110,7 @@
|
||||
<ClCompile Include="..\..\..\core\input_hw\sportspad.c" />
|
||||
<ClCompile Include="..\..\..\core\input_hw\teamplayer.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\loadrom.c" />
|
||||
<ClCompile Include="..\..\..\core\m68k\m68kcpu.c">
|
||||
|
@ -104,9 +104,6 @@
|
||||
<ClCompile Include="..\..\libretro.c">
|
||||
<Filter>Source Files\libretro</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\core\input_hw\xe_a1p.c">
|
||||
<Filter>Source Files\input_hw</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\core\input_hw\activator.c">
|
||||
<Filter>Source Files\input_hw</Filter>
|
||||
</ClCompile>
|
||||
@ -230,5 +227,11 @@
|
||||
<ClCompile Include="..\..\..\core\tremor\vorbisfile.c">
|
||||
<Filter>Source Files\tremor</Filter>
|
||||
</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>
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user