mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-27 22:52:41 +00:00
Visual Studio compiles again
This commit is contained in:
parent
dfd47733e2
commit
99c91d4bb3
7 changed files with 85 additions and 30 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -24,4 +24,5 @@ Win32_LIB_ASM_Release
|
||||||
/build
|
/build
|
||||||
/build/*
|
/build/*
|
||||||
/CMakeUserPresets.json
|
/CMakeUserPresets.json
|
||||||
/out
|
/out
|
||||||
|
/objs/VC10
|
||||||
|
|
|
@ -220,7 +220,7 @@ static char *bindtable[NUMINPUTS];
|
||||||
static void CONS_Bind_f(void)
|
static void CONS_Bind_f(void)
|
||||||
{
|
{
|
||||||
size_t na;
|
size_t na;
|
||||||
char *newcmd;
|
char *newcmd = NULL;
|
||||||
//size_t newlen = 0;
|
//size_t newlen = 0;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
INT32 key;
|
INT32 key;
|
||||||
|
|
|
@ -10535,7 +10535,7 @@ static void M_StartTimeAttackReplay(INT32 choice)
|
||||||
// Player has selected the "REPLAY" from the time attack screen
|
// Player has selected the "REPLAY" from the time attack screen
|
||||||
static void M_ReplayTimeAttack(INT32 choice)
|
static void M_ReplayTimeAttack(INT32 choice)
|
||||||
{
|
{
|
||||||
const char *which;
|
const char *which = NULL;
|
||||||
UINT8 error = DFILE_ERROR_NONE;
|
UINT8 error = DFILE_ERROR_NONE;
|
||||||
|
|
||||||
if (currentMenu == &SP_ReplayDef)
|
if (currentMenu == &SP_ReplayDef)
|
||||||
|
|
|
@ -376,7 +376,7 @@ void *Picture_PatchConvert(
|
||||||
// Write columns
|
// Write columns
|
||||||
for (INT32 x = 0; x < inwidth; x++)
|
for (INT32 x = 0; x < inwidth; x++)
|
||||||
{
|
{
|
||||||
post_t *post;
|
post_t *post = NULL;
|
||||||
size_t post_data_offset = 0;
|
size_t post_data_offset = 0;
|
||||||
boolean was_opaque = false;
|
boolean was_opaque = false;
|
||||||
|
|
||||||
|
|
|
@ -472,7 +472,7 @@ UINT8 *R_GenerateTexture(size_t texnum)
|
||||||
|
|
||||||
for (x = 0; x < texture->width; x++)
|
for (x = 0; x < texture->width; x++)
|
||||||
{
|
{
|
||||||
post_t *post;
|
post_t *post = NULL;
|
||||||
boolean was_opaque = false;
|
boolean was_opaque = false;
|
||||||
|
|
||||||
column_t *column = &temp_columns[x];
|
column_t *column = &temp_columns[x];
|
||||||
|
|
|
@ -165,7 +165,22 @@
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
|
<PreprocessorDefinitions>HAVE_CURL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>D:\Code\SRB2-VSFix\libs\curl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<CustomBuild>
|
||||||
|
<Command />
|
||||||
|
</CustomBuild>
|
||||||
|
<CustomBuild>
|
||||||
|
<Message />
|
||||||
|
</CustomBuild>
|
||||||
|
<CustomBuild>
|
||||||
|
<Outputs />
|
||||||
|
</CustomBuild>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>libcurl.dll.a;libz32.a;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>D:\Code\SRB2-VSFix\libs\zlib\win32;D:\Code\SRB2-VSFix\libs\curl\lib32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
|
@ -175,7 +190,50 @@
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<DisableSpecificWarnings>4244;4267;4146;4003</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4244;4267;4146;4003</DisableSpecificWarnings>
|
||||||
|
<PreprocessorDefinitions>HAVE_CURL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>D:\Code\SRB2-VSFix\libs\curl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<CustomBuild>
|
||||||
|
<Command />
|
||||||
|
</CustomBuild>
|
||||||
|
<CustomBuild>
|
||||||
|
<Message />
|
||||||
|
</CustomBuild>
|
||||||
|
<CustomBuild>
|
||||||
|
<Outputs />
|
||||||
|
</CustomBuild>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>libcurl.dll.a;libz32.a;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>D:\Code\SRB2-VSFix\libs\zlib\win32;D:\Code\SRB2-VSFix\libs\curl\lib32;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<DisableSpecificWarnings>4244;4267;4146</DisableSpecificWarnings>
|
||||||
|
<PreprocessorDefinitions>HAVE_CURL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<AdditionalIncludeDirectories>D:\Code\SRB2-VSFix\src\win32\curl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<AdditionalModuleDependencies>D:\Code\SRB2-VSFix\src\win32\curl\lib;%(AdditionalModuleDependencies)</AdditionalModuleDependencies>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>libcurl.a;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>D:\Code\SRB2-VSFix\src\win32\curl\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PreprocessorDefinitions>HAVE_CURL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>libcurl.a;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>D:\Code\SRB2-VSFix\src\win32\curl\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\libs\libpng-src\projects\visualc10\libpng.vcxproj">
|
<ProjectReference Include="..\..\libs\libpng-src\projects\visualc10\libpng.vcxproj">
|
||||||
|
@ -314,7 +372,6 @@
|
||||||
<ClInclude Include="..\netcode\server_connection.h" />
|
<ClInclude Include="..\netcode\server_connection.h" />
|
||||||
<ClInclude Include="..\netcode\tic_command.h" />
|
<ClInclude Include="..\netcode\tic_command.h" />
|
||||||
<ClInclude Include="..\p5prof.h" />
|
<ClInclude Include="..\p5prof.h" />
|
||||||
<ClInclude Include="..\p_haptic.h" />
|
|
||||||
<ClInclude Include="..\p_local.h" />
|
<ClInclude Include="..\p_local.h" />
|
||||||
<ClInclude Include="..\p_maputl.h" />
|
<ClInclude Include="..\p_maputl.h" />
|
||||||
<ClInclude Include="..\p_mobj.h" />
|
<ClInclude Include="..\p_mobj.h" />
|
||||||
|
@ -400,6 +457,7 @@
|
||||||
<ClCompile Include="..\blua\lmem.c" />
|
<ClCompile Include="..\blua\lmem.c" />
|
||||||
<ClCompile Include="..\blua\lobject.c" />
|
<ClCompile Include="..\blua\lobject.c" />
|
||||||
<ClCompile Include="..\blua\lopcodes.c" />
|
<ClCompile Include="..\blua\lopcodes.c" />
|
||||||
|
<ClCompile Include="..\blua\loslib.c" />
|
||||||
<ClCompile Include="..\blua\lparser.c" />
|
<ClCompile Include="..\blua\lparser.c" />
|
||||||
<ClCompile Include="..\blua\lstate.c" />
|
<ClCompile Include="..\blua\lstate.c" />
|
||||||
<ClCompile Include="..\blua\lstring.c" />
|
<ClCompile Include="..\blua\lstring.c" />
|
||||||
|
@ -438,6 +496,8 @@
|
||||||
<ClCompile Include="..\hardware\hw_md3load.c" />
|
<ClCompile Include="..\hardware\hw_md3load.c" />
|
||||||
<ClCompile Include="..\hardware\hw_model.c" />
|
<ClCompile Include="..\hardware\hw_model.c" />
|
||||||
<ClCompile Include="..\hardware\r_opengl\r_opengl.c" />
|
<ClCompile Include="..\hardware\r_opengl\r_opengl.c" />
|
||||||
|
<ClCompile Include="..\lua_colorlib.c" />
|
||||||
|
<ClCompile Include="..\r_bbox.c" />
|
||||||
<ClCompile Include="..\u_list.c" />
|
<ClCompile Include="..\u_list.c" />
|
||||||
<ClCompile Include="..\hu_stuff.c" />
|
<ClCompile Include="..\hu_stuff.c" />
|
||||||
<ClCompile Include="..\info.c" />
|
<ClCompile Include="..\info.c" />
|
||||||
|
@ -495,7 +555,6 @@
|
||||||
<ClCompile Include="..\p_ceilng.c" />
|
<ClCompile Include="..\p_ceilng.c" />
|
||||||
<ClCompile Include="..\p_enemy.c" />
|
<ClCompile Include="..\p_enemy.c" />
|
||||||
<ClCompile Include="..\p_floor.c" />
|
<ClCompile Include="..\p_floor.c" />
|
||||||
<ClCompile Include="..\p_haptic.c" />
|
|
||||||
<ClCompile Include="..\p_inter.c" />
|
<ClCompile Include="..\p_inter.c" />
|
||||||
<ClCompile Include="..\p_lights.c" />
|
<ClCompile Include="..\p_lights.c" />
|
||||||
<ClCompile Include="..\p_map.c" />
|
<ClCompile Include="..\p_map.c" />
|
||||||
|
@ -567,7 +626,6 @@
|
||||||
<ClCompile Include="IMG_xpm.c">
|
<ClCompile Include="IMG_xpm.c">
|
||||||
<ExcludedFromBuild>true</ExcludedFromBuild>
|
<ExcludedFromBuild>true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="i_gamepad.c" />
|
|
||||||
<ClCompile Include="i_main.c" />
|
<ClCompile Include="i_main.c" />
|
||||||
<ClCompile Include="i_net.c" />
|
<ClCompile Include="i_net.c" />
|
||||||
<ClCompile Include="i_system.c" />
|
<ClCompile Include="i_system.c" />
|
||||||
|
@ -584,4 +642,4 @@
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -255,9 +255,6 @@
|
||||||
<ClInclude Include="..\hardware\hw_model.h">
|
<ClInclude Include="..\hardware\hw_model.h">
|
||||||
<Filter>Hw_Hardware</Filter>
|
<Filter>Hw_Hardware</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\hardware\u_list.h">
|
|
||||||
<Filter>Hw_Hardware</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\byteptr.h">
|
<ClInclude Include="..\byteptr.h">
|
||||||
<Filter>I_Interface</Filter>
|
<Filter>I_Interface</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -378,9 +375,6 @@
|
||||||
<ClInclude Include="..\netcode\gamestate.h">
|
<ClInclude Include="..\netcode\gamestate.h">
|
||||||
<Filter>D_Doom</Filter>
|
<Filter>D_Doom</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\netcode\http-mserv.h">
|
|
||||||
<Filter>I_Interface</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\netcode\i_addrinfo.h">
|
<ClInclude Include="..\netcode\i_addrinfo.h">
|
||||||
<Filter>I_Interface</Filter>
|
<Filter>I_Interface</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -558,12 +552,16 @@
|
||||||
<ClInclude Include="..\r_fps.h">
|
<ClInclude Include="..\r_fps.h">
|
||||||
<Filter>R_Rend</Filter>
|
<Filter>R_Rend</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\p_haptic.h">
|
|
||||||
<Filter>P_Play</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\m_easing.h">
|
<ClInclude Include="..\m_easing.h">
|
||||||
<Filter>M_Misc</Filter>
|
<Filter>M_Misc</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\d_clisrv.h" />
|
||||||
|
<ClInclude Include="..\d_net.h" />
|
||||||
|
<ClInclude Include="..\d_netcmd.h" />
|
||||||
|
<ClInclude Include="..\d_netfil.h" />
|
||||||
|
<ClInclude Include="..\u_list.h" />
|
||||||
|
<ClInclude Include="..\mserv.h" />
|
||||||
|
<ClInclude Include="..\http-mserv.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<CustomBuild Include="..\tmap.nas">
|
<CustomBuild Include="..\tmap.nas">
|
||||||
|
@ -753,15 +751,9 @@
|
||||||
<ClCompile Include="..\hardware\hw_model.c">
|
<ClCompile Include="..\hardware\hw_model.c">
|
||||||
<Filter>Hw_Hardware</Filter>
|
<Filter>Hw_Hardware</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\hardware\u_list.c">
|
|
||||||
<Filter>Hw_Hardware</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\filesrch.c">
|
<ClCompile Include="..\filesrch.c">
|
||||||
<Filter>I_Interface</Filter>
|
<Filter>I_Interface</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\i_tcp.c">
|
|
||||||
<Filter>I_Interface</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\lua_baselib.c">
|
<ClCompile Include="..\lua_baselib.c">
|
||||||
<Filter>LUA</Filter>
|
<Filter>LUA</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -1105,21 +1097,25 @@
|
||||||
<ClCompile Include="..\lua_hudlib_drawlist.c">
|
<ClCompile Include="..\lua_hudlib_drawlist.c">
|
||||||
<Filter>LUA</Filter>
|
<Filter>LUA</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="i_gamepad.c">
|
|
||||||
<Filter>SDLApp</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\i_time.c">
|
<ClCompile Include="..\i_time.c">
|
||||||
<Filter>I_Interface</Filter>
|
<Filter>I_Interface</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\r_fps.c">
|
<ClCompile Include="..\r_fps.c">
|
||||||
<Filter>R_Rend</Filter>
|
<Filter>R_Rend</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\p_haptic.c">
|
|
||||||
<Filter>P_Play</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\m_easing.c">
|
<ClCompile Include="..\m_easing.c">
|
||||||
<Filter>M_Misc</Filter>
|
<Filter>M_Misc</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\u_list.c" />
|
||||||
|
<ClCompile Include="..\blua\loslib.c">
|
||||||
|
<Filter>BLUA</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\lua_colorlib.c">
|
||||||
|
<Filter>LUA</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\r_bbox.c">
|
||||||
|
<Filter>R_Rend</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Srb2SDL.ico">
|
<Image Include="Srb2SDL.ico">
|
||||||
|
|
Loading…
Reference in a new issue