Skip to content

Commit

Permalink
Revert "Put savefile and bonefile versions in CMakeLists.txt"
Browse files Browse the repository at this point in the history
This reverts commit 8730f0a.
  • Loading branch information
ryfactor committed Dec 22, 2017
1 parent 434f82d commit a5b8bd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ set(PROJECT_VERSION ${VERSION_MAJOR}.${VERSION_MINOR})
#set(VERSION_PATCH 0)
#set(PROJECT_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})

# Increment this if changes make savefiles incompatible
set(SAVE_FILE_VERSION 130)
# Increment this if changes make bonefiles incompatible
set(BONE_FILE_VERSION 116)

set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
add_definitions(-DIVAN_VERSION="${PROJECT_VERSION}" -DSAVE_FILE_VERSION="${SAVE_FILE_VERSION}" -DBONE_FILE_VERSION="${BONE_FILE_VERSION}" -DUSE_SDL)
add_definitions(-DIVAN_VERSION="${PROJECT_VERSION}" -DUSE_SDL)

if(UNIX)
add_definitions(-DUNIX)
Expand Down
3 changes: 3 additions & 0 deletions Main/Source/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@

#include "audio.h"

#define SAVE_FILE_VERSION 130 // Increment this if changes make savefiles incompatible
#define BONE_FILE_VERSION 116 // Increment this if changes make bonefiles incompatible

#define LOADED 0
#define NEW_GAME 1
#define BACK 2
Expand Down

0 comments on commit a5b8bd4

Please sign in to comment.