From 69ef41a49f621b0b1cdb8136a51d6cc5222f04ed Mon Sep 17 00:00:00 2001 From: Aloshi Date: Tue, 24 Sep 2013 16:27:20 -0500 Subject: [PATCH] Add boost-regex to required libs. Added PlatformId.h. --- CMakeLists.txt | 2 +- src/PlatformId.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ src/SystemData.h | 3 +++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 src/PlatformId.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d781c99a..8b8fa5a96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ endif() find_package(FreeType REQUIRED) find_package(FreeImage REQUIRED) find_package(SDL2 REQUIRED) -find_package(Boost REQUIRED COMPONENTS system filesystem) +find_package(Boost REQUIRED COMPONENTS system filesystem regex) find_package(Eigen3 REQUIRED) #add ALSA for Linux diff --git a/src/PlatformId.h b/src/PlatformId.h new file mode 100644 index 000000000..1ce1cda0b --- /dev/null +++ b/src/PlatformId.h @@ -0,0 +1,54 @@ +#pragma once + +namespace PlatformIds +{ + enum PlatformId + { + PLATFORM_UNKNOWN, + THREEDO, //can't start with a constant + AMIGA, + ARCADE, + ATARI_2600, + ATARI_5200, + ATARI_7800, + ATARI_JAGUAR, + ATARI_JAGUAR_CD, + ATARI_XE, + COLECOVISION, + COMMODORE_64, + INTELLIVISION, + MAC_OS, + XBOX, + XBOX_360, + NEOGEO, + NINTENDO_3DS, + NINTENDO_64, + NINTENDO_DS, + NINTENDO_ENTERTAINMENT_SYSTEM, + GAME_BOY, + GAME_BOY_ADVANCE, + GAME_BOY_COLOR, + NINTENDO_GAMECUBE, + NINTENDO_WII, + NINTENDO_WII_U, + PC, + SEGA_32X, + SEGA_CD, + SEGA_DREAMCAST, + SEGA_GAME_GEAR, + SEGA_GENESIS, + SEGA_MASTER_SYSTEM, + SEGA_MEGA_DRIVE, + SEGA_SATURN, + PLAYSTATION, + PLAYSTATION_2, + PLAYSTATION_3, + PLAYSTATION_4, + PLAYSTATION_VITA, + PLAYSTATION_PORTABLE, + SUPER_NINTENDO, + TURBOGRAFX_16, + PLATFORM_COUNT + }; +} + diff --git a/src/SystemData.h b/src/SystemData.h index a087b8ba4..acd4540ee 100644 --- a/src/SystemData.h +++ b/src/SystemData.h @@ -6,6 +6,7 @@ #include "FolderData.h" #include "Window.h" #include "MetaData.h" +#include "PlatformId.h" class GameData; @@ -38,6 +39,7 @@ private: std::string mStartPath; std::string mSearchExtension; std::string mLaunchCommand; + PlatformIds::PlatformId mPlatformId; void populateFolder(FolderData* folder); @@ -45,3 +47,4 @@ private: }; #endif +