Move checksum configuration to CMakeLists.txt and config.h
This commit is contained in:
parent
8e282304ad
commit
cea891f87d
|
@ -10,6 +10,10 @@ set(breakhack_MINOR_VERSION 0)
|
|||
set(breakhack_PATCH_VERSION 1)
|
||||
set(breakhack_RELEASE_TYPE "")
|
||||
|
||||
# Checksums
|
||||
set(breakhack_STEAMAPI_DLL_CHECKSUM 0x18dba28)
|
||||
set(breakhack_STEAMAPI_SO_CHECKSUM 0x1f5786b)
|
||||
|
||||
include(FindLua)
|
||||
include(FindPhysFS)
|
||||
include(build/cmake/FindSDL2.cmake)
|
||||
|
|
|
@ -27,4 +27,9 @@
|
|||
#define PATCH_VERSION @breakhack_PATCH_VERSION@
|
||||
#define RELEASE_TYPE "@breakhack_RELEASE_TYPE@"
|
||||
|
||||
|
||||
/* Checksums */
|
||||
#define SO_LIBSTEAM_CHECKSUM @breakhack_STEAMAPI_SO_CHECKSUM@
|
||||
#define DLL_LIBSTEAM_CHECKSUM @breakhack_STEAMAPI_DLL_CHECKSUM@
|
||||
|
||||
#endif // CONFIG_H_
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
#include <stdint.h>
|
||||
#include "config.h"
|
||||
|
||||
/* Checksums */
|
||||
#define SO_LIBSTEAM_CHECKSUM 0x1f5786b
|
||||
#define DLL_LIBSTEAM_CHECKSUM 0x18dba28
|
||||
|
||||
/* Room/Map dimensions */
|
||||
#define MAP_ROOM_WIDTH 16
|
||||
#define MAP_ROOM_HEIGHT 12
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
#include "time.h"
|
||||
#include "sprite_util.h"
|
||||
#include "event.h"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef STEAM_BUILD
|
||||
#include "checksum.h"
|
||||
|
|
Loading…
Reference in New Issue