Skip to content

Commit

Permalink
imageinfo.cpp: add PACKAGE_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankenstone committed Dec 14, 2017
1 parent 3ec8530 commit f2a1483
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/gui/imageinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,15 @@ void CImageInfo::InitInfoData()
#endif

string version_string = config.getString("version", "");
#ifdef IMAGE_VERSION
version_string = IMAGE_VERSION;
#ifdef PACKAGE_VERSION
#if HAVE_SH4_HARDWARE
version_string = "SH4-Release : ";
#elif HAVE_ARM_HARDWARE
version_string = "ARM-Release : ";
#else
version_string = "Release : ";
#endif
version_string += PACKAGE_VERSION;
#else
bool is_version_code = true;
for (size_t i=0; i<version_string.size(); i++){
Expand Down

0 comments on commit f2a1483

Please sign in to comment.