(Xbox 1 MSVC) Solution changes

This commit is contained in:
twinaphex 2012-08-15 19:45:17 +02:00
parent b15a94ffdf
commit f49e8e2f36
2 changed files with 81 additions and 13 deletions

View File

@ -9,6 +9,10 @@
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
#ifdef _XBOX1
#include <xtl.h>
#endif
#include "shared.h" #include "shared.h"
#include "libretro.h" #include "libretro.h"
#include "state.h" #include "state.h"
@ -98,18 +102,12 @@ static uint8_t brm_format[0x40] =
void error(char * msg, ...) void error(char * msg, ...)
{ {
#ifdef _XBOX1 #ifndef _XBOX1
char buffer[1024];
#endif
va_list ap; va_list ap;
va_start(ap, msg); va_start(ap, msg);
#ifdef _XBOX1
vsnprintf(buffer, sizeof(buffer), msg, ap);
OutputDebugStringA(buffer);
#else
vfprintf(stderr, msg, ap); vfprintf(stderr, msg, ap);
#endif
va_end(ap); va_end(ap);
#endif
} }
int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension) int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension)

View File

@ -22,7 +22,7 @@
Optimization="0" Optimization="0"
OptimizeForProcessor="2" OptimizeForProcessor="2"
AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;" AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;"
PreprocessorDefinitions="_DEBUG;_XBOX;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict=" PreprocessorDefinitions="_DEBUG;_XBOX;_XBOX1;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict="
MinimalRebuild="TRUE" MinimalRebuild="TRUE"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
@ -56,7 +56,7 @@
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="2" OptimizeForProcessor="2"
AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;" AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;"
PreprocessorDefinitions="NDEBUG;_XBOX;PROFILE;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict=" PreprocessorDefinitions="NDEBUG;_XBOX;_XBOX1;PROFILE;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict="
StringPooling="TRUE" StringPooling="TRUE"
RuntimeLibrary="0" RuntimeLibrary="0"
BufferSecurityCheck="TRUE" BufferSecurityCheck="TRUE"
@ -91,7 +91,7 @@
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="2" OptimizeForProcessor="2"
AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;" AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;"
PreprocessorDefinitions="NDEBUG;_XBOX;PROFILE;FASTCAP;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict=" PreprocessorDefinitions="NDEBUG;_XBOX;_XBOX1;PROFILE;FASTCAP;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict="
StringPooling="TRUE" StringPooling="TRUE"
RuntimeLibrary="0" RuntimeLibrary="0"
BufferSecurityCheck="TRUE" BufferSecurityCheck="TRUE"
@ -127,7 +127,7 @@
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="2" OptimizeForProcessor="2"
AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;" AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;"
PreprocessorDefinitions="NDEBUG;_XBOX;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict=" PreprocessorDefinitions="NDEBUG;_XBOX;_XBOX1;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict="
StringPooling="TRUE" StringPooling="TRUE"
RuntimeLibrary="0" RuntimeLibrary="0"
BufferSecurityCheck="TRUE" BufferSecurityCheck="TRUE"
@ -163,7 +163,7 @@
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="2" OptimizeForProcessor="2"
AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;" AdditionalIncludeDirectories="&quot;$(SolutionDir)\..\..\source&quot;;&quot;$(SolutionDir)\..\..\source\cd_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw&quot;;&quot;$(SolutionDir)\..\..\source\sound&quot;;&quot;$(SolutionDir)\..\..\source\z80&quot;;&quot;$(SolutionDir)\..\..\&quot;;&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)\..\..\source\m68k&quot;;&quot;$(SolutionDir)\..\..\source\input_hw&quot;;&quot;$(SolutionDir)\..\..\source\cart_hw\svp&quot;;&quot;$(SolutionDir)\..\..\source\ntsc&quot;;&quot;$(SolutionDir)\..\..\libretro&quot;;&quot;$(SolutionDir)\msvc-2003-xbox1&quot;"
PreprocessorDefinitions="NDEBUG;_XBOX;LTCG;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict=" PreprocessorDefinitions="NDEBUG;_XBOX;_XBOX1;LTCG;_LIB;__LIBRETRO__;LSB_FIRST;USE_15BPP_RENDERING;INLINE=_inline;__restrict="
StringPooling="TRUE" StringPooling="TRUE"
RuntimeLibrary="0" RuntimeLibrary="0"
BufferSecurityCheck="TRUE" BufferSecurityCheck="TRUE"
@ -367,6 +367,76 @@
RelativePath="..\..\..\source\ntsc\sms_ntsc.c"> RelativePath="..\..\..\source\ntsc\sms_ntsc.c">
</File> </File>
</Filter> </Filter>
<Filter
Name="m68k"
Filter="">
<File
RelativePath="..\..\..\source\m68k\m68kcpu.c">
<FileConfiguration
Name="Debug|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile_FastCap|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release_LTCG|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\..\source\m68k\s68kcpu.c">
<FileConfiguration
Name="Debug|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Profile_FastCap|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
<FileConfiguration
Name="Release_LTCG|Xbox">
<Tool
Name="VCCLCompilerTool"
CompileAs="1"/>
</FileConfiguration>
</File>
</Filter>
</Filter> </Filter>
</Filter> </Filter>
<Filter <Filter