aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kohaut2017-03-08 22:43:47 +0100
committerPeter Kohaut2017-03-08 22:43:47 +0100
commit65ef0c8ff84588962a32ddc2df2e1de17325d0a5 (patch)
tree3db5405ed78a287ce950129e6b5925ca55f0a057
parent27368cc8453f423955f5baa826611ea8a3b09feb (diff)
downloadscummvm-rg350-65ef0c8ff84588962a32ddc2df2e1de17325d0a5.tar.gz
scummvm-rg350-65ef0c8ff84588962a32ddc2df2e1de17325d0a5.tar.bz2
scummvm-rg350-65ef0c8ff84588962a32ddc2df2e1de17325d0a5.zip
CREATE_PROJECT: Fixed solution version for Visual Studio 2015
-rw-r--r--devtools/create_project/msbuild.cpp5
-rw-r--r--dists/msvc15/readme.txt2
2 files changed, 5 insertions, 2 deletions
diff --git a/devtools/create_project/msbuild.cpp b/devtools/create_project/msbuild.cpp
index 2389bb6cfb..762b3e4526 100644
--- a/devtools/create_project/msbuild.cpp
+++ b/devtools/create_project/msbuild.cpp
@@ -65,7 +65,10 @@ int MSBuildProvider::getVisualStudioVersion() {
}
int MSBuildProvider::getSolutionVersion() {
- return (_version == 15) ? 14 : _version + 1;
+ if (_version == 14 || _version == 15)
+ return 14;
+
+ return _version + 1;
}
namespace {
diff --git a/dists/msvc15/readme.txt b/dists/msvc15/readme.txt
index 3d16c7b20b..bce3ffbaae 100644
--- a/dists/msvc15/readme.txt
+++ b/dists/msvc15/readme.txt
@@ -2,5 +2,5 @@ The Visual Studio project files can now be created automatically from the GCC
files using the create_project tool inside the /devtools/create_project folder.
To create the default project files, build create_project.exe, copy it inside
-this folder and run the create_msvc14.bat file for a default build. You can run
+this folder and run the create_msvc15.bat file for a default build. You can run
create_project.exe with no parameters to check the possible command-line options.