mirror of https://github.com/stella-emu/stella.git
Moved final remaining bits of SDL-specific code out of src/emucore.
This commit is contained in:
parent
2b3e2dc385
commit
e3873cce73
|
@ -19,6 +19,7 @@
|
|||
#define MEDIA_FACTORY_HXX
|
||||
|
||||
#include "bspf.hxx"
|
||||
#include "SDL_lib.hxx"
|
||||
|
||||
#include "OSystem.hxx"
|
||||
#include "Settings.hxx"
|
||||
|
@ -129,6 +130,16 @@ class MediaFactory
|
|||
SDL_Quit();
|
||||
}
|
||||
|
||||
static string backendName()
|
||||
{
|
||||
ostringstream buf;
|
||||
SDL_version ver;
|
||||
SDL_GetVersion(&ver);
|
||||
buf << "SDL " << int(ver.major) << "." << int(ver.minor) << "." << int(ver.patch);
|
||||
|
||||
return buf.str();
|
||||
}
|
||||
|
||||
private:
|
||||
// Following constructors and assignment operators not supported
|
||||
MediaFactory() = delete;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef VERSION_HXX
|
||||
#define VERSION_HXX
|
||||
|
||||
#define STELLA_VERSION "6.0_beta1"
|
||||
#define STELLA_BUILD "4514"
|
||||
#define STELLA_VERSION "6.0_beta2"
|
||||
#define STELLA_BUILD "4603"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -87,11 +87,8 @@ OSystem::OSystem()
|
|||
|
||||
// Get build info
|
||||
ostringstream info;
|
||||
SDL_version ver;
|
||||
SDL_GetVersion(&ver);
|
||||
|
||||
info << "Build " << STELLA_BUILD << ", using SDL " << int(ver.major)
|
||||
<< "." << int(ver.minor) << "."<< int(ver.patch)
|
||||
info << "Build " << STELLA_BUILD << ", using " << MediaFactory::backendName()
|
||||
<< " [" << BSPF::ARCH << "]";
|
||||
myBuildInfo = info.str();
|
||||
|
||||
|
|
Loading…
Reference in New Issue