Skip to content

Commit

Permalink
VS 2015 setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa committed Jan 14, 2016
1 parent 8fd2242 commit e5fdd23
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ vcpp/sauerbraten.vcxproj.user
vcpp/Debug/
vcpp/Release/
vcpp/ipch
vcpp/sauerbraten.v12.suo
vcpp/*.suo
vcpp/.vs
vcpp/*.opendb
6 changes: 3 additions & 3 deletions engine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ void clearcontrollerids() {
selectedpad = -1;
}

void initgamecontrollers(bool enable) {
void initgamecontrollers(int enable) {
resetpaddata();
clearcontrollerids();
if(ngamecontrollers && gamecontrollers) {
Expand Down Expand Up @@ -698,7 +698,7 @@ void rumblehaptics(int mode, int power, int duration) {
}
}

void inithaptics(bool enable) {
void inithaptics(int enable) {
if(nhaptics && haptics) {
hapticsnames.deletearrays();
loopi(nhaptics) {
Expand Down Expand Up @@ -2340,7 +2340,7 @@ int gameloop (void* p)
inputgrab(grabinput = true);
ignoremousemotion();

conoutf("\f0Sauerbraten SDL2 Client\f1 Version 2.2.2");
conoutf("\f0Sauerbraten SDL2 Client\f1 Version 2.3.0");

ullong prevcycletime = 0;
for(;;)
Expand Down
19 changes: 10 additions & 9 deletions vcpp/sauerbraten.vcxproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
Expand Down Expand Up @@ -38,26 +38,27 @@
<ProjectName>sauerbraten</ProjectName>
<ProjectGuid>{06594C6D-6DA9-49DC-9A91-8F47221DDCFD}</ProjectGuid>
<RootNamespace>sauerbraten</RootNamespace>
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand All @@ -71,21 +72,21 @@
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>Windows7.1SDK</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Template|Win32'">
<PlatformToolset>Windows7.1SDK</PlatformToolset>
<PlatformToolset>v140_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Template|x64'">
<PlatformToolset>Windows7.1SDK</PlatformToolset>
</PropertyGroup>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand Down Expand Up @@ -1220,4 +1221,4 @@
<UserProperties DevPartner_IsInstrumented="0" />
</VisualStudio>
</ProjectExtensions>
</Project>
</Project>
4 changes: 3 additions & 1 deletion vcpp/sauerbraten.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@
<ClInclude Include="..\engine\sdl2_keymap_extrakeys.h">
<Filter>engine</Filter>
</ClInclude>
<ClInclude Include="..\engine\controllerdb.h">
<Filter>engine</Filter>
</ClInclude>
<ClInclude Include="..\engine\skelmodel.h">
<Filter>engine</Filter>
</ClInclude>
Expand Down Expand Up @@ -313,4 +316,3 @@
</Filter>
</ItemGroup>
</Project>

0 comments on commit e5fdd23

Please sign in to comment.