mirror of https://github.com/stella-emu/stella.git
CPU architecture info is now shown in AboutDialog, next to the build
version and SDL library. Bumped version # for test builds for AtariAge members. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1897 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
54a5d77542
commit
f3282d299c
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#define STELLA_BASE_VERSION "3.1_svn"
|
||||
#define STELLA_BASE_VERSION "3.1_test1"
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#define STELLA_VERSION STELLA_BASE_VERSION "pre-" NIGHTLY_BUILD
|
||||
|
|
|
@ -117,7 +117,7 @@ OSystem::OSystem()
|
|||
|
||||
info << "Build " << STELLA_BUILD << ", using ";
|
||||
info << "SDL " << (int)ver->major << "." << (int)ver->minor << "." << (int)ver->patch << " ";
|
||||
info << "[" << " " << "]";
|
||||
info << "[" << BSPF_ARCH << "]";
|
||||
myBuildInfo = info.str();
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -102,6 +102,18 @@
|
|||
#define BSPF_vsnprintf vsnprintf
|
||||
#endif
|
||||
|
||||
// CPU architecture type
|
||||
// This isn't complete yet, but takes care of all the major platforms
|
||||
#if defined(__i386__)
|
||||
#define BSPF_ARCH "i386"
|
||||
#elif defined(__x86_64__)
|
||||
#define BSPF_ARCH "x86_64"
|
||||
#elif defined(__powerpc__) || defined(__ppc__)
|
||||
#define BSPF_ARCH "ppc"
|
||||
#else
|
||||
#define BSPF_ARCH "NOARCH"
|
||||
#endif
|
||||
|
||||
// Some convenience functions
|
||||
template<typename T> inline void BSPF_swap(T &a, T &b) { T tmp = a; a = b; b = tmp; }
|
||||
template<typename T> inline T BSPF_abs (T x) { return (x>=0) ? x : -x; }
|
||||
|
|
Loading…
Reference in New Issue